#478331#478331

#478331 is a mid, vivid green. Relative luminance 0.178; OKLCH L 55.0% C 0.131 H 138.2°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#478331
RGBrgb(71, 131, 49)
HSLhsl(104, 46%, 35%)
HSVhsv(104, 63%, 51%)
CMYKcmyk(45.8%, 0%, 62.6%, 48.6%)
CIE-LABlab(49.24, -35.59, 37.47)
CIE-LCHlch(49.24, 51.68, 133.53°)
OKLaboklab(55.05% -0.098 0.0875)
OKLCHoklch(55.05% 0.131 138.2)
XYZxyz(11.2688, 17.7932, 5.7458)
Luminance0.1779 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478331 #6D3183
analogous
#708331 #478331 #318344
triadic
#478331 #314783 #833147
tetradic
#478331 #317083 #6D3183 #834431
square
#478331 #317083 #6D3183 #834431
split-complementary
#478331 #443183 #833170
monochromatic
#172A10 #2F5620 #478331 #5FB042 #81C668

Accessibility & contrast

On white

4.61
#478331 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#478331 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #478331
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478331#FFFFFF#000000##FFFFFF
##4783311.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877828
Deuteranopia (green-blind)
#7F7337
Tritanopia (blue-blind)
#437F71
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #478331;
/* rgb */ color: rgb(71, 131, 49);
/* oklch */ color: oklch(55.0% 0.131 138.2);
Tailwind
colors: {
  custom: {
    50: '#7fa76c',
    500: '#478331',
    950: '#000000',
  },
}
SCSS
$custom: #478331;
$custom-light: #7fa76c;
$custom-dark: #000000;
JSON
{
  "hex": "#478331",
  "rgb": {
    "r": 71,
    "g": 131,
    "b": 49
  },
  "hsl": {
    "h": 103.902,
    "s": 45.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.55045,
    "c": 0.13138,
    "h": 138.2
  },
  "luminance": 0.17794
}

Semantic roles & 50–950 ramp

primary
#478331
secondary
#9962AE
accent
#53D5B2
background
#F8FAF6
surface
#EFF4EC
border
#CACEC7
text
#0A0F07
muted
#7C7F7A

Preview Lab

Preview with #478331

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

Preview Lab → · Contrast checker → · Palette generator →

#478331 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva