#407218#407218

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

Color values

HEX#407218
RGBrgb(64, 114, 24)
HSLhsl(93, 65%, 27%)
HSVhsv(93, 79%, 45%)
CMYKcmyk(43.9%, 0%, 78.9%, 55.3%)
CIE-LABlab(43.05, -32.72, 41.58)
CIE-LCHlch(43.05, 52.91, 128.20°)
OKLaboklab(49.81% -0.0916 0.0929)
OKLCHoklch(49.81% 0.13 134.6)
XYZxyz(8.2964, 13.1901, 2.9728)
Luminance0.1319 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407218 #4A1872
analogous
#6D7218 #407218 #18721D
triadic
#407218 #184072 #721840
tetradic
#407218 #186D72 #4A1872 #721D18
square
#407218 #186D72 #4A1872 #721D18
split-complementary
#407218 #1D1872 #72186D
monochromatic
#0E1905 #243F0D #407218 #5CA523 #79D431

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407218#FFFFFF#000000##FFFFFF
##4072181.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)
#776804
Deuteranopia (green-blind)
#706421
Tritanopia (blue-blind)
#3F6D61
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #407218;
/* rgb */ color: rgb(64, 114, 24);
/* oklch */ color: oklch(49.8% 0.130 134.6);
Tailwind
colors: {
  custom: {
    50: '#7a9b5c',
    500: '#407218',
    950: '#000000',
  },
}
SCSS
$custom: #407218;
$custom-light: #7a9b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#407218",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 93.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.4981,
    "c": 0.13045,
    "h": 134.6
  },
  "luminance": 0.13191
}

Semantic roles & 50–950 ramp

primary
#407218
secondary
#793EA7
accent
#40E89D
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #407218

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

Preview Lab → · Contrast checker → · Palette generator →

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