#478C12#478C12

#478C12 is a mid, vivid yellow-green. Relative luminance 0.201; OKLCH L 57.2% C 0.162 H 135.8°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#478C12
RGBrgb(71, 140, 18)
HSLhsl(94, 77%, 31%)
HSVhsv(94, 87%, 55%)
CMYKcmyk(49.3%, 0%, 87.1%, 45.1%)
CIE-LABlab(51.99, -41.65, 51.74)
CIE-LCHlch(51.99, 66.42, 128.83°)
OKLaboklab(57.24% -0.1164 0.1131)
OKLCHoklch(57.24% 0.162 135.8)
XYZxyz(12.0855, 20.1386, 3.8225)
Luminance0.2014 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478C12 #57128C
analogous
#848C12 #478C12 #128C1A
triadic
#478C12 #12478C #8C1247
tetradic
#478C12 #12848C #57128C #8C1A12
square
#478C12 #12848C #57128C #8C1A12
split-complementary
#478C12 #1A128C #8C1284
monochromatic
#102004 #2B560B #478C12 #63C219 #81E534

Accessibility & contrast

On white

4.18
#478C12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#478C12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #478C12
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478C12#FFFFFF#000000##000000
##478C121.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#887A22
Tritanopia (blue-blind)
#448677
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #478c12;
/* rgb */ color: rgb(71, 140, 18);
/* oklch */ color: oklch(57.2% 0.162 135.8);
Tailwind
colors: {
  custom: {
    50: '#82ae5e',
    500: '#478c12',
    950: '#000000',
  },
}
SCSS
$custom: #478c12;
$custom-light: #82ae5e;
$custom-dark: #000000;
JSON
{
  "hex": "#478c12",
  "rgb": {
    "r": 71,
    "g": 140,
    "b": 18
  },
  "hsl": {
    "h": 93.934,
    "s": 77.215,
    "l": 30.98
  },
  "oklch": {
    "l": 0.57235,
    "c": 0.16235,
    "h": 135.8
  },
  "luminance": 0.20139
}

Semantic roles & 50–950 ramp

primary
#478C12
secondary
#8639C0
accent
#34F4A0
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #478C12

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

Preview Lab → · Contrast checker → · Palette generator →

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