#407F21#407F21

#407F21 is a mid, vivid green. Relative luminance 0.164; OKLCH L 53.5% C 0.142 H 137.3°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#407F21
RGBrgb(64, 127, 33)
HSLhsl(100, 59%, 31%)
HSVhsv(100, 74%, 50%)
CMYKcmyk(49.6%, 0%, 74%, 50.2%)
CIE-LABlab(47.47, -37.69, 42.53)
CIE-LCHlch(47.47, 56.83, 131.55°)
OKLaboklab(53.46% -0.1044 0.0962)
OKLCHoklch(53.46% 0.142 137.3)
XYZxyz(9.9779, 16.3779, 4.0740)
Luminance0.1638 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F21 #60217F
analogous
#6F7F21 #407F21 #217F31
triadic
#407F21 #21407F #7F2140
tetradic
#407F21 #216F7F #60217F #7F3121
square
#407F21 #216F7F #60217F #7F3121
split-complementary
#407F21 #31217F #7F216F
monochromatic
#0F1E08 #284E14 #407F21 #58B02E #76D04A

Accessibility & contrast

On white

4.91
#407F21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#407F21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407F21
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407F21#FFFFFF#000000##FFFFFF
##407F211.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837411
Deuteranopia (green-blind)
#7B6F2A
Tritanopia (blue-blind)
#3C7A6D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #407f21;
/* rgb */ color: rgb(64, 127, 33);
/* oklch */ color: oklch(53.5% 0.142 137.3);
Tailwind
colors: {
  custom: {
    50: '#7ba563',
    500: '#407f21',
    950: '#000000',
  },
}
SCSS
$custom: #407f21;
$custom-light: #7ba563;
$custom-dark: #000000;
JSON
{
  "hex": "#407f21",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 33
  },
  "hsl": {
    "h": 100.213,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53455,
    "c": 0.14197,
    "h": 137.3
  },
  "luminance": 0.16379
}

Semantic roles & 50–950 ramp

primary
#407F21
secondary
#904AB2
accent
#46E2AE
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #407F21

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#407F21 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva