#407018#407018

#407018 is a mid, vivid yellow-green. Relative luminance 0.127; OKLCH L 49.3% C 0.128 H 134.3°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#407018
RGBrgb(64, 112, 24)
HSLhsl(93, 65%, 27%)
HSVhsv(93, 79%, 44%)
CMYKcmyk(42.9%, 0%, 78.6%, 56.1%)
CIE-LABlab(42.37, -31.83, 40.93)
CIE-LCHlch(42.37, 51.85, 127.87°)
OKLaboklab(49.26% -0.0892 0.0915)
OKLCHoklch(49.26% 0.128 134.3)
XYZxyz(8.0732, 12.7439, 2.8984)
Luminance0.1274 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407018 #481870
analogous
#6C7018 #407018 #18701C
triadic
#407018 #184070 #701840
tetradic
#407018 #186C70 #481870 #701C18
square
#407018 #186C70 #481870 #701C18
split-complementary
#407018 #1C1870 #70186C
monochromatic
#0E1905 #233E0D #407018 #5DA223 #7AD330

Accessibility & contrast

On white

5.92
#407018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#407018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407018
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407018#FFFFFF#000000##FFFFFF
##4070181.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756605
Deuteranopia (green-blind)
#6E6321
Tritanopia (blue-blind)
#3F6B5F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #407018;
/* rgb */ color: rgb(64, 112, 24);
/* oklch */ color: oklch(49.3% 0.128 134.3);
Tailwind
colors: {
  custom: {
    50: '#7a995c',
    500: '#407018',
    950: '#000000',
  },
}
SCSS
$custom: #407018;
$custom-light: #7a995c;
$custom-dark: #000000;
JSON
{
  "hex": "#407018",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 92.727,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.49258,
    "c": 0.12778,
    "h": 134.3
  },
  "luminance": 0.12744
}

Semantic roles & 50–950 ramp

primary
#407018
secondary
#773EA5
accent
#40E89C
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #407018

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

Preview Lab → · Contrast checker → · Palette generator →

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