#478817#478817

#478817 is a mid, vivid yellow-green. Relative luminance 0.190; OKLCH L 56.2% C 0.155 H 135.7°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#478817
RGBrgb(71, 136, 23)
HSLhsl(95, 71%, 31%)
HSVhsv(95, 83%, 53%)
CMYKcmyk(47.8%, 0%, 83.1%, 46.7%)
CIE-LABlab(50.70, -39.78, 49.23)
CIE-LCHlch(50.70, 63.30, 128.94°)
OKLaboklab(56.18% -0.1112 0.1086)
OKLCHoklch(56.18% 0.155 135.7)
XYZxyz(11.5571, 19.0090, 3.8706)
Luminance0.1901 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478817 #581788
analogous
#7F8817 #478817 #17881F
triadic
#478817 #174788 #881747
tetradic
#478817 #177F88 #581788 #881F17
square
#478817 #177F88 #581788 #881F17
split-complementary
#478817 #1F1788 #88177F
monochromatic
#101F05 #2C540E #478817 #62BC20 #80DE3B

Accessibility & contrast

On white

4.37
#478817 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#478817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #478817
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478817#FFFFFF#000000##000000
##4788171.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#857725
Tritanopia (blue-blind)
#458374
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #478817;
/* rgb */ color: rgb(71, 136, 23);
/* oklch */ color: oklch(56.2% 0.155 135.7);
Tailwind
colors: {
  custom: {
    50: '#81ab5f',
    500: '#478817',
    950: '#000000',
  },
}
SCSS
$custom: #478817;
$custom-light: #81ab5f;
$custom-dark: #000000;
JSON
{
  "hex": "#478817",
  "rgb": {
    "r": 71,
    "g": 136,
    "b": 23
  },
  "hsl": {
    "h": 94.513,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.56176,
    "c": 0.1554,
    "h": 135.7
  },
  "luminance": 0.1901
}

Semantic roles & 50–950 ramp

primary
#478817
secondary
#873FBC
accent
#3AEEA1
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #478817

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

Preview Lab → · Contrast checker → · Palette generator →

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