#478A42#478A42

#478A42 is a mid, vivid green. Relative luminance 0.199; OKLCH L 57.1% C 0.126 H 142.4°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#478A42
RGBrgb(71, 138, 66)
HSLhsl(116, 35%, 40%)
HSVhsv(116, 52%, 54%)
CMYKcmyk(48.6%, 0%, 52.2%, 45.9%)
CIE-LABlab(51.73, -36.54, 31.89)
CIE-LCHlch(51.73, 48.50, 138.89°)
OKLaboklab(57.15% -0.0996 0.0768)
OKLCHoklch(57.15% 0.126 142.4)
XYZxyz(12.6698, 19.9090, 8.3284)
Luminance0.1991 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478A42 #85428A
analogous
#6B8A42 #478A42 #428A61
triadic
#478A42 #42478A #8A4247
tetradic
#478A42 #426B8A #85428A #8A6142
square
#478A42 #426B8A #85428A #8A6142
split-complementary
#478A42 #61428A #8A426B
monochromatic
#1C371A #32612E #478A42 #5FB059 #87C483

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##478A42#FFFFFF#000000##000000
##478A421.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)
#8D7F3C
Deuteranopia (green-blind)
#847947
Tritanopia (blue-blind)
#3F8679
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #478a42;
/* rgb */ color: rgb(71, 138, 66);
/* oklch */ color: oklch(57.1% 0.126 142.4);
Tailwind
colors: {
  custom: {
    50: '#7fad78',
    500: '#478a42',
    950: '#000000',
  },
}
SCSS
$custom: #478a42;
$custom-light: #7fad78;
$custom-dark: #000000;
JSON
{
  "hex": "#478a42",
  "rgb": {
    "r": 71,
    "g": 138,
    "b": 66
  },
  "hsl": {
    "h": 115.833,
    "s": 35.294,
    "l": 40
  },
  "oklch": {
    "l": 0.57149,
    "c": 0.12574,
    "h": 142.4
  },
  "luminance": 0.1991
}

Semantic roles & 50–950 ramp

primary
#478A42
secondary
#AB79AE
accent
#5CCBC4
background
#F8FAF7
surface
#EFF4ED
border
#CACEC8
text
#0A1009
muted
#7C7F7B

Preview Lab

Preview with #478A42

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

Preview Lab → · Contrast checker → · Palette generator →

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