#478A15#478A15

#478A15 is a mid, vivid yellow-green. Relative luminance 0.196; OKLCH L 56.7% C 0.159 H 135.8°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#478A15
RGBrgb(71, 138, 21)
HSLhsl(94, 74%, 31%)
HSVhsv(94, 85%, 54%)
CMYKcmyk(48.6%, 0%, 84.8%, 45.9%)
CIE-LABlab(51.35, -40.70, 50.39)
CIE-LCHlch(51.35, 64.78, 128.93°)
OKLaboklab(56.71% -0.1137 0.1107)
OKLCHoklch(56.71% 0.159 135.8)
XYZxyz(11.8221, 19.5699, 3.8637)
Luminance0.1957 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478A15 #58158A
analogous
#818A15 #478A15 #158A1D
triadic
#478A15 #15478A #8A1547
tetradic
#478A15 #15818A #58158A #8A1D15
square
#478A15 #15818A #58158A #8A1D15
split-complementary
#478A15 #1D158A #8A1581
monochromatic
#102005 #2C550D #478A15 #62BF1D #80E139

Accessibility & contrast

On white

4.27
#478A15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#478A15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #478A15
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478A15#FFFFFF#000000##000000
##478A151.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#867824
Tritanopia (blue-blind)
#448575
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #478a15;
/* rgb */ color: rgb(71, 138, 21);
/* oklch */ color: oklch(56.7% 0.159 135.8);
Tailwind
colors: {
  custom: {
    50: '#81ad5f',
    500: '#478a15',
    950: '#000000',
  },
}
SCSS
$custom: #478a15;
$custom-light: #81ad5f;
$custom-dark: #000000;
JSON
{
  "hex": "#478a15",
  "rgb": {
    "r": 71,
    "g": 138,
    "b": 21
  },
  "hsl": {
    "h": 94.359,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.56707,
    "c": 0.15875,
    "h": 135.8
  },
  "luminance": 0.19571
}

Semantic roles & 50–950 ramp

primary
#478A15
secondary
#873DBE
accent
#38F0A1
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #478A15

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

Preview Lab → · Contrast checker → · Palette generator →

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