#407213#407213

#407213 is a mid, vivid yellow-green. Relative luminance 0.132; OKLCH L 49.8% C 0.133 H 134.2°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#407213
RGBrgb(64, 114, 19)
HSLhsl(92, 71%, 26%)
HSVhsv(92, 83%, 45%)
CMYKcmyk(43.9%, 0%, 83.3%, 55.3%)
CIE-LABlab(43.02, -33.02, 43.27)
CIE-LCHlch(43.02, 54.43, 127.35°)
OKLaboklab(49.78% -0.0928 0.0956)
OKLCHoklch(49.78% 0.133 134.2)
XYZxyz(8.2491, 13.1712, 2.7236)
Luminance0.1317 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407213 #451372
analogous
#6F7213 #407213 #137215
triadic
#407213 #134072 #721340
tetradic
#407213 #136F72 #451372 #721513
square
#407213 #136F72 #451372 #721513
split-complementary
#407213 #151372 #72136F
monochromatic
#0F1A04 #233E0A #407213 #5DA61C #7BDB25

Accessibility & contrast

On white

5.78
#407213 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#407213 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407213
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407213#FFFFFF#000000##FFFFFF
##4072131.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776800
Deuteranopia (green-blind)
#70641E
Tritanopia (blue-blind)
#3F6D61
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #407213;
/* rgb */ color: rgb(64, 114, 19);
/* oklch */ color: oklch(49.8% 0.133 134.2);
Tailwind
colors: {
  custom: {
    50: '#7a9b5a',
    500: '#407213',
    950: '#000000',
  },
}
SCSS
$custom: #407213;
$custom-light: #7a9b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#407213",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 19
  },
  "hsl": {
    "h": 91.579,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.49778,
    "c": 0.1332,
    "h": 134.2
  },
  "luminance": 0.13172
}

Semantic roles & 50–950 ramp

primary
#407213
secondary
#7338A9
accent
#3AEE99
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #407213

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

Preview Lab → · Contrast checker → · Palette generator →

#407213 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva