#407223#407223

#407223 is a mid, vivid yellow-green. Relative luminance 0.132; OKLCH L 49.9% C 0.123 H 136.1°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#407223
RGBrgb(64, 114, 35)
HSLhsl(98, 53%, 29%)
HSVhsv(98, 69%, 45%)
CMYKcmyk(43.9%, 0%, 69.3%, 55.3%)
CIE-LABlab(43.13, -31.85, 37.16)
CIE-LCHlch(43.13, 48.94, 130.60°)
OKLaboklab(49.9% -0.0884 0.0852)
OKLCHoklch(49.9% 0.123 136.1)
XYZxyz(8.4348, 13.2455, 3.7020)
Luminance0.1325 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407223 #552372
analogous
#687223 #407223 #23722E
triadic
#407223 #234072 #722340
tetradic
#407223 #236872 #552372 #722E23
square
#407223 #236872 #552372 #722E23
split-complementary
#407223 #2E2372 #722368
monochromatic
#0D1707 #264315 #407223 #5AA131 #77C748

Accessibility & contrast

On white

5.75
#407223 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#407223 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407223
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407223#FFFFFF#000000##FFFFFF
##4072231.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766918
Deuteranopia (green-blind)
#6F642A
Tritanopia (blue-blind)
#3E6E62
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #407223;
/* rgb */ color: rgb(64, 114, 35);
/* oklch */ color: oklch(49.9% 0.123 136.1);
Tailwind
colors: {
  custom: {
    50: '#799b62',
    500: '#407223',
    950: '#000000',
  },
}
SCSS
$custom: #407223;
$custom-light: #799b62;
$custom-dark: #000000;
JSON
{
  "hex": "#407223",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 35
  },
  "hsl": {
    "h": 97.975,
    "s": 53.02,
    "l": 29.216
  },
  "oklch": {
    "l": 0.49904,
    "c": 0.1228,
    "h": 136.1
  },
  "luminance": 0.13246
}

Semantic roles & 50–950 ramp

primary
#407223
secondary
#844CA5
accent
#4BDCA7
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#090E05
muted
#7B7E7A

Preview Lab

Preview with #407223

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

Preview Lab → · Contrast checker → · Palette generator →

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