#407312#407312

#407312 is a mid, vivid yellow-green. Relative luminance 0.134; OKLCH L 50.0% C 0.135 H 134.2°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#407312
RGBrgb(64, 115, 18)
HSLhsl(92, 73%, 26%)
HSVhsv(92, 84%, 45%)
CMYKcmyk(44.3%, 0%, 84.3%, 54.9%)
CIE-LABlab(43.35, -33.52, 43.88)
CIE-LCHlch(43.35, 55.22, 127.37°)
OKLaboklab(50.05% -0.0942 0.0967)
OKLCHoklch(50.05% 0.135 134.2)
XYZxyz(8.3541, 13.3947, 2.7174)
Luminance0.1340 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407312 #451273
analogous
#707312 #407312 #127314
triadic
#407312 #124073 #731240
tetradic
#407312 #127073 #451273 #731412
square
#407312 #127073 #451273 #731412
split-complementary
#407312 #141273 #731270
monochromatic
#0F1A04 #233E0A #407312 #5DA81A #7BDD23

Accessibility & contrast

On white

5.71
#407312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #407312
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407312#FFFFFF#000000##FFFFFF
##4073121.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#71651D
Tritanopia (blue-blind)
#3F6E61
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #407312;
/* rgb */ color: rgb(64, 115, 18);
/* oklch */ color: oklch(50.0% 0.135 134.2);
Tailwind
colors: {
  custom: {
    50: '#7a9c5a',
    500: '#407312',
    950: '#000000',
  },
}
SCSS
$custom: #407312;
$custom-light: #7a9c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#407312",
  "rgb": {
    "r": 64,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 91.546,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.50048,
    "c": 0.13498,
    "h": 134.2
  },
  "luminance": 0.13395
}

Semantic roles & 50–950 ramp

primary
#407312
secondary
#7337AA
accent
#38F099
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #407312

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

Preview Lab → · Contrast checker → · Palette generator →

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