#407217#407217

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

Color values

HEX#407217
RGBrgb(64, 114, 23)
HSLhsl(93, 66%, 27%)
HSVhsv(93, 80%, 45%)
CMYKcmyk(43.9%, 0%, 79.8%, 55.3%)
CIE-LABlab(43.04, -32.79, 41.94)
CIE-LCHlch(43.04, 53.23, 128.02°)
OKLaboklab(49.8% -0.0919 0.0934)
OKLCHoklch(49.8% 0.131 134.5)
XYZxyz(8.2862, 13.1860, 2.9190)
Luminance0.1319 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407217 #491772
analogous
#6E7217 #407217 #17721C
triadic
#407217 #174072 #721740
tetradic
#407217 #176E72 #491772 #721C17
square
#407217 #176E72 #491772 #721C17
split-complementary
#407217 #1C1772 #72176E
monochromatic
#0E1905 #233F0D #407217 #5DA521 #79D52E

Accessibility & contrast

On white

5.77
#407217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#407217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407217
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407217#FFFFFF#000000##FFFFFF
##4072171.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776802
Deuteranopia (green-blind)
#706421
Tritanopia (blue-blind)
#3F6D61
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #407217;
/* rgb */ color: rgb(64, 114, 23);
/* oklch */ color: oklch(49.8% 0.131 134.5);
Tailwind
colors: {
  custom: {
    50: '#7a9b5c',
    500: '#407217',
    950: '#000000',
  },
}
SCSS
$custom: #407217;
$custom-light: #7a9b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#407217",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 92.967,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.49803,
    "c": 0.13104,
    "h": 134.5
  },
  "luminance": 0.13186
}

Semantic roles & 50–950 ramp

primary
#407217
secondary
#783DA8
accent
#3EE99C
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #407217

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

Preview Lab → · Contrast checker → · Palette generator →

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