#417818#417818

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

Color values

HEX#417818
RGBrgb(65, 120, 24)
HSLhsl(94, 67%, 28%)
HSVhsv(94, 80%, 47%)
CMYKcmyk(45.8%, 0%, 80%, 52.9%)
CIE-LABlab(45.11, -35.00, 43.59)
CIE-LCHlch(45.11, 55.90, 128.77°)
OKLaboklab(51.52% -0.0979 0.097)
OKLCHoklch(51.52% 0.138 135.2)
XYZxyz(9.0611, 14.6222, 3.2089)
Luminance0.1462 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#417818 #4F1878
analogous
#717818 #417818 #18781F
triadic
#417818 #184178 #781841
tetradic
#417818 #187178 #4F1878 #781F18
square
#417818 #187178 #4F1878 #781F18
split-complementary
#417818 #1F1878 #781871
monochromatic
#0E1A05 #25450E #417818 #5DAB22 #79D634

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##417818#FFFFFF#000000##FFFFFF
##4178181.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)
#7D6E01
Deuteranopia (green-blind)
#756922
Tritanopia (blue-blind)
#3F7366
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #417818;
/* rgb */ color: rgb(65, 120, 24);
/* oklch */ color: oklch(51.5% 0.138 135.2);
Tailwind
colors: {
  custom: {
    50: '#7b9f5d',
    500: '#417818',
    950: '#000000',
  },
}
SCSS
$custom: #417818;
$custom-light: #7b9f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#417818",
  "rgb": {
    "r": 65,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 94.375,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51516,
    "c": 0.1378,
    "h": 135.2
  },
  "luminance": 0.14623
}

Semantic roles & 50–950 ramp

primary
#417818
secondary
#7E3FAD
accent
#3EEAA0
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #417818

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

Preview Lab → · Contrast checker → · Palette generator →

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