#417817#417817

#417817 is a mid, vivid yellow-green. Relative luminance 0.146; OKLCH L 51.5% C 0.138 H 135.1°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#417817
RGBrgb(65, 120, 23)
HSLhsl(94, 68%, 28%)
HSVhsv(94, 81%, 47%)
CMYKcmyk(45.8%, 0%, 80.8%, 52.9%)
CIE-LABlab(45.11, -35.07, 43.93)
CIE-LCHlch(45.11, 56.21, 128.60°)
OKLaboklab(51.51% -0.0981 0.0976)
OKLCHoklch(51.51% 0.138 135.1)
XYZxyz(9.0509, 14.6181, 3.1551)
Luminance0.1462 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#417817 #4E1778
analogous
#717817 #417817 #17781E
triadic
#417817 #174178 #781741
tetradic
#417817 #177178 #4E1778 #781E17
square
#417817 #177178 #4E1778 #781E17
split-complementary
#417817 #1E1778 #781771
monochromatic
#0E1A05 #25450D #417817 #5DAB21 #7AD832

Accessibility & contrast

On white

5.35
#417817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#417817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #417817
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##417817#FFFFFF#000000##FFFFFF
##4178171.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#756922
Tritanopia (blue-blind)
#3F7366
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #417817;
/* rgb */ color: rgb(65, 120, 23);
/* oklch */ color: oklch(51.5% 0.138 135.1);
Tailwind
colors: {
  custom: {
    50: '#7b9f5d',
    500: '#417817',
    950: '#000000',
  },
}
SCSS
$custom: #417817;
$custom-light: #7b9f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#417817",
  "rgb": {
    "r": 65,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 94.021,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.51509,
    "c": 0.13835,
    "h": 135.1
  },
  "luminance": 0.14619
}

Semantic roles & 50–950 ramp

primary
#417817
secondary
#7D3EAD
accent
#3DEBA0
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #417817

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

Preview Lab → · Contrast checker → · Palette generator →

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