#478F18#478F18

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

Color values

HEX#478F18
RGBrgb(71, 143, 24)
HSLhsl(96, 71%, 33%)
HSVhsv(96, 83%, 56%)
CMYKcmyk(50.3%, 0%, 83.2%, 43.9%)
CIE-LABlab(53.00, -42.58, 51.06)
CIE-LCHlch(53.00, 66.48, 129.83°)
OKLaboklab(58.07% -0.1186 0.1126)
OKLCHoklch(58.07% 0.164 136.5)
XYZxyz(12.5855, 21.0496, 4.2638)
Luminance0.2105 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478F18 #60188F
analogous
#828F18 #478F18 #188F25
triadic
#478F18 #18478F #8F1847
tetradic
#478F18 #18828F #60188F #8F2518
square
#478F18 #18828F #60188F #8F2518
split-complementary
#478F18 #25188F #8F1882
monochromatic
#132606 #2D5B0F #478F18 #61C321 #80DF42

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##478F18#FFFFFF#000000##000000
##478F181.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)
#8B7C27
Tritanopia (blue-blind)
#43897A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #478f18;
/* rgb */ color: rgb(71, 143, 24);
/* oklch */ color: oklch(58.1% 0.164 136.5);
Tailwind
colors: {
  custom: {
    50: '#82b061',
    500: '#478f18',
    950: '#000000',
  },
}
SCSS
$custom: #478f18;
$custom-light: #82b061;
$custom-dark: #000000;
JSON
{
  "hex": "#478f18",
  "rgb": {
    "r": 71,
    "g": 143,
    "b": 24
  },
  "hsl": {
    "h": 96.303,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.58074,
    "c": 0.16352,
    "h": 136.5
  },
  "luminance": 0.2105
}

Semantic roles & 50–950 ramp

primary
#478F18
secondary
#8F43C0
accent
#3AEEA7
background
#F8FAF6
surface
#EFF5EB
border
#CACFC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #478F18

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

Preview Lab → · Contrast checker → · Palette generator →

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