#478F1B#478F1B

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

Color values

HEX#478F1B
RGBrgb(71, 143, 27)
HSLhsl(97, 68%, 33%)
HSVhsv(97, 81%, 56%)
CMYKcmyk(50.3%, 0%, 81.1%, 43.9%)
CIE-LABlab(53.02, -42.42, 50.17)
CIE-LCHlch(53.02, 65.70, 130.22°)
OKLaboklab(58.09% -0.118 0.1112)
OKLCHoklch(58.09% 0.162 136.7)
XYZxyz(12.6185, 21.0628, 4.4373)
Luminance0.2106 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478F1B #631B8F
analogous
#818F1B #478F1B #1B8F29
triadic
#478F1B #1B478F #8F1B47
tetradic
#478F1B #1B818F #631B8F #8F291B
square
#478F1B #1B818F #631B8F #8F291B
split-complementary
#478F1B #291B8F #8F1B81
monochromatic
#142808 #2D5C11 #478F1B #61C225 #80DC48

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##478F1B#FFFFFF#000000##000000
##478F1B1.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)
#8B7C28
Tritanopia (blue-blind)
#438A7A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #478f1b;
/* rgb */ color: rgb(71, 143, 27);
/* oklch */ color: oklch(58.1% 0.162 136.7);
Tailwind
colors: {
  custom: {
    50: '#82b062',
    500: '#478f1b',
    950: '#000000',
  },
}
SCSS
$custom: #478f1b;
$custom-light: #82b062;
$custom-dark: #000000;
JSON
{
  "hex": "#478f1b",
  "rgb": {
    "r": 71,
    "g": 143,
    "b": 27
  },
  "hsl": {
    "h": 97.241,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.5809,
    "c": 0.16213,
    "h": 136.7
  },
  "luminance": 0.21064
}

Semantic roles & 50–950 ramp

primary
#478F1B
secondary
#9148BE
accent
#3DEBA9
background
#F8FAF6
surface
#EFF5EB
border
#CACFC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #478F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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