#407318#407318

#407318 is a mid, vivid yellow-green. Relative luminance 0.134; OKLCH L 50.1% C 0.132 H 134.8°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#407318
RGBrgb(64, 115, 24)
HSLhsl(94, 65%, 27%)
HSVhsv(94, 79%, 45%)
CMYKcmyk(44.3%, 0%, 79.1%, 54.9%)
CIE-LABlab(43.38, -33.17, 41.91)
CIE-LCHlch(43.38, 53.45, 128.36°)
OKLaboklab(50.09% -0.0928 0.0935)
OKLCHoklch(50.09% 0.132 134.8)
XYZxyz(8.4098, 13.4169, 3.0106)
Luminance0.1342 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407318 #4B1873
analogous
#6E7318 #407318 #18731D
triadic
#407318 #184073 #731840
tetradic
#407318 #186E73 #4B1873 #731D18
square
#407318 #186E73 #4B1873 #731D18
split-complementary
#407318 #1D1873 #73186E
monochromatic
#0E1905 #24400D #407318 #5CA623 #79D431

Accessibility & contrast

On white

5.70
#407318 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#407318 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407318
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407318#FFFFFF#000000##FFFFFF
##4073181.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786904
Deuteranopia (green-blind)
#716522
Tritanopia (blue-blind)
#3F6E62
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #407318;
/* rgb */ color: rgb(64, 115, 24);
/* oklch */ color: oklch(50.1% 0.132 134.8);
Tailwind
colors: {
  custom: {
    50: '#7a9c5c',
    500: '#407318',
    950: '#000000',
  },
}
SCSS
$custom: #407318;
$custom-light: #7a9c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#407318",
  "rgb": {
    "r": 64,
    "g": 115,
    "b": 24
  },
  "hsl": {
    "h": 93.626,
    "s": 65.468,
    "l": 27.255
  },
  "oklch": {
    "l": 0.50086,
    "c": 0.13178,
    "h": 134.8
  },
  "luminance": 0.13417
}

Semantic roles & 50–950 ramp

primary
#407318
secondary
#7A3FA8
accent
#3FE89E
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #407318

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

Preview Lab → · Contrast checker → · Palette generator →

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