#407118#407118

#407118 is a mid, vivid yellow-green. Relative luminance 0.130; OKLCH L 49.5% C 0.129 H 134.5°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#407118
RGBrgb(64, 113, 24)
HSLhsl(93, 65%, 27%)
HSVhsv(93, 79%, 44%)
CMYKcmyk(43.4%, 0%, 78.8%, 55.7%)
CIE-LABlab(42.71, -32.28, 41.26)
CIE-LCHlch(42.71, 52.38, 128.04°)
OKLaboklab(49.53% -0.0904 0.0922)
OKLCHoklch(49.53% 0.129 134.5)
XYZxyz(8.1842, 12.9658, 2.9354)
Luminance0.1297 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407118 #491871
analogous
#6D7118 #407118 #18711D
triadic
#407118 #184071 #711840
tetradic
#407118 #186D71 #491871 #711D18
square
#407118 #186D71 #491871 #711D18
split-complementary
#407118 #1D1871 #71186D
monochromatic
#0E1905 #233F0D #407118 #5DA323 #79D330

Accessibility & contrast

On white

5.84
#407118 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#407118 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407118
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407118#FFFFFF#000000##FFFFFF
##4071181.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766705
Deuteranopia (green-blind)
#6F6321
Tritanopia (blue-blind)
#3F6C60
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #407118;
/* rgb */ color: rgb(64, 113, 24);
/* oklch */ color: oklch(49.5% 0.129 134.5);
Tailwind
colors: {
  custom: {
    50: '#7a9a5c',
    500: '#407118',
    950: '#000000',
  },
}
SCSS
$custom: #407118;
$custom-light: #7a9a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#407118",
  "rgb": {
    "r": 64,
    "g": 113,
    "b": 24
  },
  "hsl": {
    "h": 93.034,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.49534,
    "c": 0.12911,
    "h": 134.5
  },
  "luminance": 0.12966
}

Semantic roles & 50–950 ramp

primary
#407118
secondary
#783EA6
accent
#40E89C
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #407118

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

Preview Lab → · Contrast checker → · Palette generator →

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