#478818#478818

#478818 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#478818
RGBrgb(71, 136, 24)
HSLhsl(95, 70%, 31%)
HSVhsv(95, 82%, 53%)
CMYKcmyk(47.8%, 0%, 82.4%, 46.7%)
CIE-LABlab(50.70, -39.73, 48.94)
CIE-LCHlch(50.70, 63.04, 129.07°)
OKLaboklab(56.18% -0.111 0.1081)
OKLCHoklch(56.18% 0.155 135.7)
XYZxyz(11.5673, 19.0131, 3.9244)
Luminance0.1901 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478818 #591888
analogous
#7F8818 #478818 #188821
triadic
#478818 #184788 #881847
tetradic
#478818 #187F88 #591888 #882118
square
#478818 #187F88 #591888 #882118
split-complementary
#478818 #211888 #88187F
monochromatic
#112006 #2C540F #478818 #62BC21 #80DD3E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##478818#FFFFFF#000000##000000
##4788181.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)
#448374
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #478818;
/* rgb */ color: rgb(71, 136, 24);
/* oklch */ color: oklch(56.2% 0.155 135.7);
Tailwind
colors: {
  custom: {
    50: '#81ab60',
    500: '#478818',
    950: '#000000',
  },
}
SCSS
$custom: #478818;
$custom-light: #81ab60;
$custom-dark: #000000;
JSON
{
  "hex": "#478818",
  "rgb": {
    "r": 71,
    "g": 136,
    "b": 24
  },
  "hsl": {
    "h": 94.821,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56182,
    "c": 0.15493,
    "h": 135.7
  },
  "luminance": 0.19014
}

Semantic roles & 50–950 ramp

primary
#478818
secondary
#8840BC
accent
#3BEDA2
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #478818

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

Preview Lab → · Contrast checker → · Palette generator →

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