#478C22#478C22

#478C22 is a mid, vivid yellow-green. Relative luminance 0.202; OKLCH L 57.3% C 0.155 H 137.0°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#478C22
RGBrgb(71, 140, 34)
HSLhsl(99, 61%, 34%)
HSVhsv(99, 76%, 55%)
CMYKcmyk(49.3%, 0%, 75.7%, 45.1%)
CIE-LABlab(52.07, -40.76, 46.88)
CIE-LCHlch(52.07, 62.12, 131.01°)
OKLaboklab(57.33% -0.1131 0.1053)
OKLCHoklch(57.33% 0.155 137)
XYZxyz(12.2650, 20.2104, 4.7678)
Luminance0.2021 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478C22 #67228C
analogous
#7C8C22 #478C22 #228C32
triadic
#478C22 #22478C #8C2247
tetradic
#478C22 #227C8C #67228C #8C3222
square
#478C22 #227C8C #67228C #8C3222
split-complementary
#478C22 #32228C #8C227C
monochromatic
#152A0A #2E5B16 #478C22 #60BD2E #81D553

Accessibility & contrast

On white

4.16
#478C22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#478C22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #478C22
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478C22#FFFFFF#000000##000000
##478C221.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800D
Deuteranopia (green-blind)
#887A2D
Tritanopia (blue-blind)
#438778
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #478c22;
/* rgb */ color: rgb(71, 140, 34);
/* oklch */ color: oklch(57.3% 0.155 137.0);
Tailwind
colors: {
  custom: {
    50: '#81ae65',
    500: '#478c22',
    950: '#000000',
  },
}
SCSS
$custom: #478c22;
$custom-light: #81ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#478c22",
  "rgb": {
    "r": 71,
    "g": 140,
    "b": 34
  },
  "hsl": {
    "h": 99.057,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57327,
    "c": 0.15455,
    "h": 137
  },
  "luminance": 0.20211
}

Semantic roles & 50–950 ramp

primary
#478C22
secondary
#9551B9
accent
#44E4AC
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #478C22

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

Preview Lab → · Contrast checker → · Palette generator →

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