#478E22#478E22

#478E22 is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 57.9% C 0.157 H 137.2°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#478E22
RGBrgb(71, 142, 34)
HSLhsl(99, 61%, 35%)
HSVhsv(99, 76%, 56%)
CMYKcmyk(50%, 0%, 76.1%, 44.3%)
CIE-LABlab(52.73, -41.58, 47.53)
CIE-LCHlch(52.73, 63.14, 131.18°)
OKLaboklab(57.87% -0.1153 0.1067)
OKLCHoklch(57.87% 0.157 137.2)
XYZxyz(12.5599, 20.8002, 4.8661)
Luminance0.2080 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478E22 #69228E
analogous
#7D8E22 #478E22 #228E33
triadic
#478E22 #22478E #8E2247
tetradic
#478E22 #227D8E #69228E #8E3322
square
#478E22 #227D8E #69228E #8E3322
split-complementary
#478E22 #33228E #8E227D
monochromatic
#162B0A #2E5D16 #478E22 #60BF2E #81D654

Accessibility & contrast

On white

4.07
#478E22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#478E22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #478E22
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478E22#FFFFFF#000000##000000
##478E221.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#93820C
Deuteranopia (green-blind)
#8A7C2D
Tritanopia (blue-blind)
#438979
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #478e22;
/* rgb */ color: rgb(71, 142, 34);
/* oklch */ color: oklch(57.9% 0.157 137.2);
Tailwind
colors: {
  custom: {
    50: '#81b065',
    500: '#478e22',
    950: '#000000',
  },
}
SCSS
$custom: #478e22;
$custom-light: #81b065;
$custom-dark: #000000;
JSON
{
  "hex": "#478e22",
  "rgb": {
    "r": 71,
    "g": 142,
    "b": 34
  },
  "hsl": {
    "h": 99.444,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.57866,
    "c": 0.15709,
    "h": 137.2
  },
  "luminance": 0.20801
}

Semantic roles & 50–950 ramp

primary
#478E22
secondary
#9652BA
accent
#43E4AD
background
#F8FAF6
surface
#EFF5EB
border
#CACFC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #478E22

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

Preview Lab → · Contrast checker → · Palette generator →

#478E22 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva