#478F12#478F12

#478F12 is a mid, vivid yellow-green. Relative luminance 0.210; OKLCH L 58.0% C 0.166 H 136.1°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#478F12
RGBrgb(71, 143, 18)
HSLhsl(95, 78%, 32%)
HSVhsv(95, 87%, 56%)
CMYKcmyk(50.3%, 0%, 87.4%, 43.9%)
CIE-LABlab(52.98, -42.85, 52.61)
CIE-LCHlch(52.98, 67.85, 129.17°)
OKLaboklab(58.05% -0.1196 0.115)
OKLCHoklch(58.05% 0.166 136.1)
XYZxyz(12.5298, 21.0273, 3.9706)
Luminance0.2103 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478F12 #5A128F
analogous
#868F12 #478F12 #128F1C
triadic
#478F12 #12478F #8F1247
tetradic
#478F12 #12868F #5A128F #8F1C12
square
#478F12 #12868F #5A128F #8F1C12
split-complementary
#478F12 #1C128F #8F1286
monochromatic
#112204 #2C590B #478F12 #62C519 #80E636

Accessibility & contrast

On white

4.03
#478F12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#478F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #478F12
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478F12#FFFFFF#000000##000000
##478F121.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#8B7C23
Tritanopia (blue-blind)
#438979
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #478f12;
/* rgb */ color: rgb(71, 143, 18);
/* oklch */ color: oklch(58.0% 0.166 136.1);
Tailwind
colors: {
  custom: {
    50: '#82b05f',
    500: '#478f12',
    950: '#000000',
  },
}
SCSS
$custom: #478f12;
$custom-light: #82b05f;
$custom-dark: #000000;
JSON
{
  "hex": "#478f12",
  "rgb": {
    "r": 71,
    "g": 143,
    "b": 18
  },
  "hsl": {
    "h": 94.56,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.58046,
    "c": 0.16593,
    "h": 136.1
  },
  "luminance": 0.21028
}

Semantic roles & 50–950 ramp

primary
#478F12
secondary
#893AC3
accent
#34F4A3
background
#F8FAF5
surface
#F0F5EA
border
#CBCFC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #478F12

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

Preview Lab → · Contrast checker → · Palette generator →

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