Action
Primary button
Use the controls above or point to and press the button to inspect its visual states.
Color reference
Clear Mid-light Green
This is a clear, mid-light green under the deterministic OKLCH hue, lightness, and chroma ranges. Its closest standardized CSS named color is Medium Sea Green (#3CB371), measured with straight-line OKLab distance.
Copyable values
Values are calculated from the same opaque sRGB color. Display rounding does not alter the internal calculations.
| Format | Value | Action |
|---|---|---|
| HEX | #42A55A |
|
| RGB | rgb(66 165 90) |
|
| HSL | hsl(135 42.86% 45.29%) |
|
| HSV | hsv(135 60% 64.71%) |
|
| HWB | hwb(135 25.88% 35.29%) |
|
| XYZ D65 | color(xyz-d65 0.175465 0.288057 0.143086) |
|
| LAB | lab(60.6097% -42.7239 29.8235) |
|
| LCH | lch(60.6097% 52.1035 145.083) |
|
| OKLAB | oklab(64.4933% -0.123049 0.074615) |
|
| OKLCH | oklch(64.4933% 0.143904 148.7682) |
Real-world test
Preview the source as a primary action, subtle status, form treatment, and card surface. Persistent state controls help touch and keyboard users inspect the same normal, hover, and active colors.
Action
Use the controls above or point to and press the button to inspect its visual states.
Status
A 12% source tint over white provides the background; readable text is selected separately.
Form
Source ring on white: 3.11:1 · meets the 3:1 non-text threshold where applicable.
Surface
The selected state becomes the card surface with its strongest black-or-white text pairing.
Accessibility diagnostics
Each result applies only to the named foreground, background, text size, and requirement. It is not a complete accessibility or component-conformance claim.
On white
On black
Use guidance
Not recommended
#42A55A does not reach 4.5:1 on white or Hue Codex paper, so it should not be used there for normal-sized text.
Needs a boundary
Against Hue Codex paper, the color reaches only 2.97:1. Use a contrasting border or another non-color boundary for meaningful controls and graphics.
Readable pairing available
Black text provides the stronger black/white pairing on #42A55A at 6.76:1. This validates only that text pair, not hover, focus, disabled, or adjacent-color states.
Distinctive accent
Its OKLCH chroma of 0.1439 gives it enough visual presence for an accent or primary role when the tested foreground and neighboring colors pass.
Pair available
The stronger black/white background is black at 6.76:1. Always retest against the actual rendered background and text size.
Tested backgrounds
| Pair | Background | Contrast ratio |
|---|---|---|
| Black#000000 | 6.76:1 | |
| Hue Codex ink#10212B | 5.31:1 | |
| White#FFFFFF | 3.11:1 | |
| Hue Codex paper#FBFAF5 | 2.97:1 | |
| Soft neutral#F2EFE6 | 2.7:1 |
Design-system starting point
The source color is preserved at the nearest lightness step. Other swatches keep its OKLCH hue, moderate chroma toward the extremes, and reduce chroma only when needed to remain in sRGB.
This is a Hue Codex reference scale, not a claim that the values match Tailwind, Material, or another framework’s named palette.
Adjust the #42A55A scale in Tints, Shades & TonesColor relationships
Hue rotations use OKLCH while preserving lightness and requested chroma. When a rotated result falls outside sRGB, chroma is reduced deterministically and disclosed.
Applied pairing
The source anchors the main action while the complement marks a secondary status. Contrast is selected separately for each fill.
Distance matching
Matches use straight-line OKLab distance ×100. A smaller value means the coordinates are closer in this model; it is not a claim that two tokens are interchangeable in a design system.
CSS named color
#3CB371 OKLab distance ×100: 4.21
Tailwind v4 default
oklch(62.7% 0.194 149.214)
OKLab distance ×100: 5.32 · sRGB preview #00A63E
Print boundary
Reliable print matching needs licensed reference data plus a defined ink, paper, profile, and viewing condition.
Read the print methodologyColor-vision screening
These encoded-sRGB matrix previews are screening approximations. They help reveal possible color-only distinctions but do not reproduce every person’s vision or establish accessibility conformance.
Red-vision deficiency approximation
Green-vision deficiency approximation
Blue-yellow deficiency approximation
Monochromatic-vision approximation
Ready to use
Exports preserve the source, readable foreground, and generated 50–900 scale. Tailwind v4 CSS-first and Tailwind v3 JavaScript-config formats are labeled separately.
Semantic aliases and the complete 50–900 scale.
:root {
--color-primary: #42A55A;
--color-on-primary: #000000;
--color-primary-oklch: oklch(64.4933% 0.143904 148.7682);
--color-primary-50: #DFFFE3;
--color-primary-100: #B1F1BA;
--color-primary-200: #8FD99C;
--color-primary-300: #6EC17D;
--color-primary-400: #42A55A;
--color-primary-500: #2F9049;
--color-primary-600: #137734;
--color-primary-700: #005E24;
--color-primary-800: #004519;
--color-primary-900: #002D0E;
}
Current @theme syntax for bg-brand, text-brand, and scale utilities.
@import "tailwindcss";
@theme {
--color-brand: #42A55A;
--color-brand-foreground: #000000;
--color-brand-50: #DFFFE3;
--color-brand-100: #B1F1BA;
--color-brand-200: #8FD99C;
--color-brand-300: #6EC17D;
--color-brand-400: #42A55A;
--color-brand-500: #2F9049;
--color-brand-600: #137734;
--color-brand-700: #005E24;
--color-brand-800: #004519;
--color-brand-900: #002D0E;
}
CommonJS theme.extend.colors for JavaScript-config projects.
module.exports = {
theme: {
extend: {
colors: {
brand: {
'50': '#DFFFE3',
'100': '#B1F1BA',
'200': '#8FD99C',
'300': '#6EC17D',
'400': '#42A55A',
'500': '#2F9049',
'600': '#137734',
'700': '#005E24',
'800': '#004519',
'900': '#002D0E',
DEFAULT: '#42A55A',
foreground: '#000000',
},
},
},
},
};
Semantic source, foreground, OKLCH, and scale variables.
$color-primary: #42A55A;
$color-on-primary: #000000;
$color-primary-oklch: oklch(64.4933% 0.143904 148.7682);
$color-primary-50: #DFFFE3;
$color-primary-100: #B1F1BA;
$color-primary-200: #8FD99C;
$color-primary-300: #6EC17D;
$color-primary-400: #42A55A;
$color-primary-500: #2F9049;
$color-primary-600: #137734;
$color-primary-700: #005E24;
$color-primary-800: #004519;
$color-primary-900: #002D0E;
Static fallbacks followed by OKLab tint and shade declarations.
:root {
--color-primary: #42A55A;
--color-primary-tint: #8FD99C;
--color-primary-tint: color-mix(in oklab, var(--color-primary) 72%, white);
--color-primary-shade: #005E24;
--color-primary-shade: color-mix(in oklab, var(--color-primary) 82%, black);
}
Source formats, readable text, and the generated scale.
{
"name": "Clear Mid-light Green",
"hex": "#42A55A",
"rgb": "rgb(66 165 90)",
"oklch": "oklch(64.4933% 0.143904 148.7682)",
"recommendedText": "#000000",
"scale": {
"50": "#DFFFE3",
"100": "#B1F1BA",
"200": "#8FD99C",
"300": "#6EC17D",
"400": "#42A55A",
"500": "#2F9049",
"600": "#137734",
"700": "#005E24",
"800": "#004519",
"900": "#002D0E"
}
}
Continue the decision
Reference values are a starting point. Test the color in its real role, background, states, typography, and surrounding palette before shipping.