#407F23#407F23

#407F23 is a mid, vivid green. Relative luminance 0.164; OKLCH L 53.5% C 0.141 H 137.6°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#407F23
RGBrgb(64, 127, 35)
HSLhsl(101, 57%, 32%)
HSVhsv(101, 72%, 50%)
CMYKcmyk(49.6%, 0%, 72.4%, 50.2%)
CIE-LABlab(47.48, -37.53, 41.74)
CIE-LCHlch(47.48, 56.13, 131.96°)
OKLaboklab(53.47% -0.1038 0.0948)
OKLCHoklch(53.47% 0.141 137.6)
XYZxyz(10.0068, 16.3894, 4.2260)
Luminance0.1639 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F23 #62237F
analogous
#6E7F23 #407F23 #237F34
triadic
#407F23 #23407F #7F2340
tetradic
#407F23 #236E7F #62237F #7F3423
square
#407F23 #236E7F #62237F #7F3423
split-complementary
#407F23 #34237F #7F236E
monochromatic
#101F09 #284F16 #407F23 #58AF30 #77CE4E

Accessibility & contrast

On white

4.91
#407F23 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#407F23 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407F23
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407F23#FFFFFF#000000##FFFFFF
##407F231.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837415
Deuteranopia (green-blind)
#7B6F2C
Tritanopia (blue-blind)
#3C7A6D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #407f23;
/* rgb */ color: rgb(64, 127, 35);
/* oklch */ color: oklch(53.5% 0.141 137.6);
Tailwind
colors: {
  custom: {
    50: '#7ba564',
    500: '#407f23',
    950: '#000000',
  },
}
SCSS
$custom: #407f23;
$custom-light: #7ba564;
$custom-dark: #000000;
JSON
{
  "hex": "#407f23",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 35
  },
  "hsl": {
    "h": 101.087,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.53472,
    "c": 0.14061,
    "h": 137.6
  },
  "luminance": 0.1639
}

Semantic roles & 50–950 ramp

primary
#407F23
secondary
#924CB1
accent
#48E0B0
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407F23

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

Preview Lab → · Contrast checker → · Palette generator →

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