#407818#407818

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

Color values

HEX#407818
RGBrgb(64, 120, 24)
HSLhsl(95, 67%, 28%)
HSVhsv(95, 80%, 47%)
CMYKcmyk(46.7%, 0%, 80%, 52.9%)
CIE-LABlab(45.07, -35.35, 43.53)
CIE-LCHlch(45.07, 56.08, 129.08°)
OKLaboklab(51.46% -0.0987 0.0969)
OKLCHoklch(51.46% 0.138 135.5)
XYZxyz(8.9955, 14.5883, 3.2058)
Luminance0.1459 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407818 #501878
analogous
#707818 #407818 #187820
triadic
#407818 #184078 #781840
tetradic
#407818 #187078 #501878 #782018
square
#407818 #187078 #501878 #782018
split-complementary
#407818 #201878 #781870
monochromatic
#0E1A05 #25450E #407818 #5BAB22 #78D634

Accessibility & contrast

On white

5.36
#407818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #407818
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407818#FFFFFF#000000##FFFFFF
##4078181.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #407818;
/* rgb */ color: rgb(64, 120, 24);
/* oklch */ color: oklch(51.5% 0.138 135.5);
Tailwind
colors: {
  custom: {
    50: '#7b9f5d',
    500: '#407818',
    950: '#000000',
  },
}
SCSS
$custom: #407818;
$custom-light: #7b9f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#407818",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 95,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51464,
    "c": 0.13834,
    "h": 135.5
  },
  "luminance": 0.14589
}

Semantic roles & 50–950 ramp

primary
#407818
secondary
#7F3FAD
accent
#3EEAA2
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #407818

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

Preview Lab → · Contrast checker → · Palette generator →

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