#478E21#478E21

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

Color values

HEX#478E21
RGBrgb(71, 142, 33)
HSLhsl(99, 62%, 34%)
HSVhsv(99, 77%, 56%)
CMYKcmyk(50%, 0%, 76.8%, 44.3%)
CIE-LABlab(52.72, -41.64, 47.88)
CIE-LCHlch(52.72, 63.46, 131.02°)
OKLaboklab(57.86% -0.1155 0.1073)
OKLCHoklch(57.86% 0.158 137.1)
XYZxyz(12.5457, 20.7945, 4.7912)
Luminance0.2079 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478E21 #68218E
analogous
#7E8E21 #478E21 #218E32
triadic
#478E21 #21478E #8E2147
tetradic
#478E21 #217E8E #68218E #8E3221
square
#478E21 #217E8E #68218E #8E3221
split-complementary
#478E21 #32218E #8E217E
monochromatic
#152B0A #2E5C15 #478E21 #60C02D #81D752

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##478E21#FFFFFF#000000##000000
##478E211.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)
#938209
Deuteranopia (green-blind)
#8A7C2C
Tritanopia (blue-blind)
#438979
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #478e21;
/* rgb */ color: rgb(71, 142, 33);
/* oklch */ color: oklch(57.9% 0.158 137.1);
Tailwind
colors: {
  custom: {
    50: '#81b065',
    500: '#478e21',
    950: '#000000',
  },
}
SCSS
$custom: #478e21;
$custom-light: #81b065;
$custom-dark: #000000;
JSON
{
  "hex": "#478e21",
  "rgb": {
    "r": 71,
    "g": 142,
    "b": 33
  },
  "hsl": {
    "h": 99.083,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.57859,
    "c": 0.15768,
    "h": 137.1
  },
  "luminance": 0.20795
}

Semantic roles & 50–950 ramp

primary
#478E21
secondary
#9550BA
accent
#42E5AD
background
#F8FAF6
surface
#EFF5EB
border
#CACFC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #478E21

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

Preview Lab → · Contrast checker → · Palette generator →

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