#407518#407518

#407518 is a mid, vivid yellow-green. Relative luminance 0.139; OKLCH L 50.6% C 0.134 H 135.1°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#407518
RGBrgb(64, 117, 24)
HSLhsl(94, 66%, 28%)
HSVhsv(94, 79%, 46%)
CMYKcmyk(45.3%, 0%, 79.5%, 54.1%)
CIE-LABlab(44.06, -34.05, 42.56)
CIE-LCHlch(44.06, 54.50, 128.66°)
OKLaboklab(50.64% -0.0952 0.0949)
OKLCHoklch(50.64% 0.134 135.1)
XYZxyz(8.6403, 13.8780, 3.0874)
Luminance0.1388 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407518 #4D1875
analogous
#6E7518 #407518 #18751F
triadic
#407518 #184075 #751840
tetradic
#407518 #186E75 #4D1875 #751F18
square
#407518 #186E75 #4D1875 #751F18
split-complementary
#407518 #1F1875 #75186E
monochromatic
#0E1905 #24420E #407518 #5CA822 #78D532

Accessibility & contrast

On white

5.56
#407518 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#407518 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407518
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407518#FFFFFF#000000##FFFFFF
##4075181.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B03
Deuteranopia (green-blind)
#726722
Tritanopia (blue-blind)
#3F7063
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #407518;
/* rgb */ color: rgb(64, 117, 24);
/* oklch */ color: oklch(50.6% 0.134 135.1);
Tailwind
colors: {
  custom: {
    50: '#7a9d5d',
    500: '#407518',
    950: '#000000',
  },
}
SCSS
$custom: #407518;
$custom-light: #7a9d5d;
$custom-dark: #000000;
JSON
{
  "hex": "#407518",
  "rgb": {
    "r": 64,
    "g": 117,
    "b": 24
  },
  "hsl": {
    "h": 94.194,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.50637,
    "c": 0.13442,
    "h": 135.1
  },
  "luminance": 0.13879
}

Semantic roles & 50–950 ramp

primary
#407518
secondary
#7C3FAA
accent
#3FE9A0
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #407518

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

Preview Lab → · Contrast checker → · Palette generator →

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