#407D23#407D23

#407D23 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.9% C 0.138 H 137.4°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#407D23
RGBrgb(64, 125, 35)
HSLhsl(101, 56%, 31%)
HSVhsv(101, 72%, 49%)
CMYKcmyk(48.8%, 0%, 72%, 51%)
CIE-LABlab(46.81, -36.68, 41.04)
CIE-LCHlch(46.81, 55.05, 131.79°)
OKLaboklab(52.92% -0.1015 0.0934)
OKLCHoklch(52.92% 0.138 137.4)
XYZxyz(9.7510, 15.8779, 4.1407)
Luminance0.1588 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407D23 #60237D
analogous
#6D7D23 #407D23 #237D33
triadic
#407D23 #23407D #7D2340
tetradic
#407D23 #236D7D #60237D #7D3323
square
#407D23 #236D7D #60237D #7D3323
split-complementary
#407D23 #33237D #7D236D
monochromatic
#0F1D08 #284D16 #407D23 #58AD30 #76CD4D

Accessibility & contrast

On white

5.03
#407D23 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#407D23 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407D23
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407D23#FFFFFF#000000##FFFFFF
##407D231.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817215
Deuteranopia (green-blind)
#796D2B
Tritanopia (blue-blind)
#3C786B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #407d23;
/* rgb */ color: rgb(64, 125, 35);
/* oklch */ color: oklch(52.9% 0.138 137.4);
Tailwind
colors: {
  custom: {
    50: '#7ba363',
    500: '#407d23',
    950: '#000000',
  },
}
SCSS
$custom: #407d23;
$custom-light: #7ba363;
$custom-dark: #000000;
JSON
{
  "hex": "#407d23",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 35
  },
  "hsl": {
    "h": 100.667,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52924,
    "c": 0.13794,
    "h": 137.4
  },
  "luminance": 0.15879
}

Semantic roles & 50–950 ramp

primary
#407D23
secondary
#904CAF
accent
#48E0AF
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407D23

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

Preview Lab → · Contrast checker → · Palette generator →

#407D23 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva