#475812#475812

#475812 is a dark, moderate yellow-green. Relative luminance 0.084; OKLCH L 43.1% C 0.095 H 122.6°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#475812
RGBrgb(71, 88, 18)
HSLhsl(75, 66%, 21%)
HSVhsv(75, 80%, 35%)
CMYKcmyk(19.3%, 0%, 79.5%, 65.5%)
CIE-LABlab(34.73, -17.40, 35.95)
CIE-LCHlch(34.73, 39.94, 115.83°)
OKLaboklab(43.14% -0.051 0.0798)
OKLCHoklch(43.14% 0.095 122.6)
XYZxyz(6.1975, 8.3627, 1.8598)
Luminance0.0836 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#475812 #231258
analogous
#584612 #475812 #245812
triadic
#475812 #124758 #581247
tetradic
#475812 #125846 #231258 #581224
square
#475812 #125846 #231258 #581224
split-complementary
#475812 #122458 #461258
monochromatic
#141905 #1E2508 #475812 #708B1C #99BE27

Accessibility & contrast

On white

7.86
#475812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#475812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #475812
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##475812#FFFFFF#000000##FFFFFF
##4758121.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5205
Deuteranopia (green-blind)
#5B5218
Tritanopia (blue-blind)
#4B534B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #475812;
/* rgb */ color: rgb(71, 88, 18);
/* oklch */ color: oklch(43.1% 0.095 122.6);
Tailwind
colors: {
  custom: {
    50: '#7d8756',
    500: '#475812',
    950: '#000000',
  },
}
SCSS
$custom: #475812;
$custom-light: #7d8756;
$custom-dark: #000000;
JSON
{
  "hex": "#475812",
  "rgb": {
    "r": 71,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 74.571,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.43137,
    "c": 0.09472,
    "h": 122.6
  },
  "luminance": 0.08363
}

Semantic roles & 50–950 ramp

primary
#475812
secondary
#4B3591
accent
#3FE968
background
#F7F8F5
surface
#EEEFE9
border
#C9CAC5
text
#0A0B03
muted
#7C7C78

Preview Lab

Preview with #475812

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

Preview Lab → · Contrast checker → · Palette generator →

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