#478B1B#478B1B

#478B1B is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 57.0% C 0.157 H 136.3°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#478B1B
RGBrgb(71, 139, 27)
HSLhsl(96, 67%, 33%)
HSVhsv(96, 81%, 55%)
CMYKcmyk(48.9%, 0%, 80.6%, 45.5%)
CIE-LABlab(51.70, -40.80, 48.94)
CIE-LCHlch(51.70, 63.71, 129.82°)
OKLaboklab(57.01% -0.1136 0.1086)
OKLCHoklch(57.01% 0.157 136.3)
XYZxyz(12.0287, 19.8832, 4.2407)
Luminance0.1988 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478B1B #5F1B8B
analogous
#7F8B1B #478B1B #1B8B27
triadic
#478B1B #1B478B #8B1B47
tetradic
#478B1B #1B7F8B #5F1B8B #8B271B
square
#478B1B #1B7F8B #5F1B8B #8B271B
split-complementary
#478B1B #271B8B #8B1B7F
monochromatic
#132507 #2D5811 #478B1B #61BE25 #80DB45

Accessibility & contrast

On white

4.22
#478B1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#478B1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #478B1B
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478B1B#FFFFFF#000000##000000
##478B1B1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#877928
Tritanopia (blue-blind)
#448676
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #478b1b;
/* rgb */ color: rgb(71, 139, 27);
/* oklch */ color: oklch(57.0% 0.157 136.3);
Tailwind
colors: {
  custom: {
    50: '#81ad61',
    500: '#478b1b',
    950: '#000000',
  },
}
SCSS
$custom: #478b1b;
$custom-light: #81ad61;
$custom-dark: #000000;
JSON
{
  "hex": "#478b1b",
  "rgb": {
    "r": 71,
    "g": 139,
    "b": 27
  },
  "hsl": {
    "h": 96.429,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.5701,
    "c": 0.15719,
    "h": 136.3
  },
  "luminance": 0.19884
}

Semantic roles & 50–950 ramp

primary
#478B1B
secondary
#8E45BC
accent
#3DEAA6
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #478B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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