#417212#417212

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

Color values

HEX#417212
RGBrgb(65, 114, 18)
HSLhsl(91, 73%, 26%)
HSVhsv(91, 84%, 45%)
CMYKcmyk(43%, 0%, 84.2%, 55.3%)
CIE-LABlab(43.07, -32.71, 43.64)
CIE-LCHlch(43.07, 54.54, 126.85°)
OKLaboklab(49.83% -0.0921 0.0962)
OKLCHoklch(49.83% 0.133 133.8)
XYZxyz(8.3063, 13.2017, 2.6827)
Luminance0.1320 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#417212 #431272
analogous
#717212 #417212 #127213
triadic
#417212 #124172 #721241
tetradic
#417212 #127172 #431272 #721312
square
#417212 #127172 #431272 #721312
split-complementary
#417212 #131272 #721271
monochromatic
#0F1A04 #233D0A #417212 #5FA71A #7DDC23

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##417212#FFFFFF#000000##FFFFFF
##4172121.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)
#776800
Deuteranopia (green-blind)
#70641D
Tritanopia (blue-blind)
#416D61
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #417212;
/* rgb */ color: rgb(65, 114, 18);
/* oklch */ color: oklch(49.8% 0.133 133.8);
Tailwind
colors: {
  custom: {
    50: '#7b9b5a',
    500: '#417212',
    950: '#000000',
  },
}
SCSS
$custom: #417212;
$custom-light: #7b9b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#417212",
  "rgb": {
    "r": 65,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 90.625,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.49827,
    "c": 0.13313,
    "h": 133.8
  },
  "luminance": 0.13202
}

Semantic roles & 50–950 ramp

primary
#417212
secondary
#7137A9
accent
#38EF96
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #417212

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

Preview Lab → · Contrast checker → · Palette generator →

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