#407117#407117

#407117 is a mid, vivid yellow-green. Relative luminance 0.130; OKLCH L 49.5% C 0.130 H 134.4°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#407117
RGBrgb(64, 113, 23)
HSLhsl(93, 66%, 27%)
HSVhsv(93, 80%, 44%)
CMYKcmyk(43.4%, 0%, 79.6%, 55.7%)
CIE-LABlab(42.71, -32.34, 41.62)
CIE-LCHlch(42.71, 52.70, 127.85°)
OKLaboklab(49.53% -0.0907 0.0928)
OKLCHoklch(49.53% 0.13 134.4)
XYZxyz(8.1740, 12.9617, 2.8816)
Luminance0.1296 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407117 #481771
analogous
#6D7117 #407117 #17711B
triadic
#407117 #174071 #711740
tetradic
#407117 #176D71 #481771 #711B17
square
#407117 #176D71 #481771 #711B17
split-complementary
#407117 #1B1771 #71176D
monochromatic
#0E1905 #233E0D #407117 #5DA421 #7AD42E

Accessibility & contrast

On white

5.85
#407117 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#407117 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407117
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407117#FFFFFF#000000##FFFFFF
##4071171.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766703
Deuteranopia (green-blind)
#6F6320
Tritanopia (blue-blind)
#3F6C60
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #407117;
/* rgb */ color: rgb(64, 113, 23);
/* oklch */ color: oklch(49.5% 0.130 134.4);
Tailwind
colors: {
  custom: {
    50: '#7a9a5c',
    500: '#407117',
    950: '#000000',
  },
}
SCSS
$custom: #407117;
$custom-light: #7a9a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#407117",
  "rgb": {
    "r": 64,
    "g": 113,
    "b": 23
  },
  "hsl": {
    "h": 92.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.49527,
    "c": 0.12971,
    "h": 134.4
  },
  "luminance": 0.12962
}

Semantic roles & 50–950 ramp

primary
#407117
secondary
#773DA7
accent
#3FE99B
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #407117

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

Preview Lab → · Contrast checker → · Palette generator →

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