#475A12#475A12

#475A12 is a dark, moderate yellow-green. Relative luminance 0.087; OKLCH L 43.7% C 0.097 H 123.6°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#475A12
RGBrgb(71, 90, 18)
HSLhsl(76, 67%, 21%)
HSVhsv(76, 80%, 35%)
CMYKcmyk(21.1%, 0%, 80%, 64.7%)
CIE-LABlab(35.39, -18.48, 36.59)
CIE-LCHlch(35.39, 40.99, 116.80°)
OKLaboklab(43.67% -0.0539 0.0812)
OKLCHoklch(43.67% 0.097 123.6)
XYZxyz(6.3640, 8.6955, 1.9153)
Luminance0.0870 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#475A12 #25125A
analogous
#5A4912 #475A12 #235A12
triadic
#475A12 #12475A #5A1247
tetradic
#475A12 #125A49 #25125A #5A1223
square
#475A12 #125A49 #25125A #5A1223
split-complementary
#475A12 #12235A #49125A
monochromatic
#141A05 #1F2708 #475A12 #6F8D1C #97C026

Accessibility & contrast

On white

7.67
#475A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#475A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #475A12
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##475A12#FFFFFF#000000##FFFFFF
##475A121.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605404
Deuteranopia (green-blind)
#5D5319
Tritanopia (blue-blind)
#4B554C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #475a12;
/* rgb */ color: rgb(71, 90, 18);
/* oklch */ color: oklch(43.7% 0.097 123.6);
Tailwind
colors: {
  custom: {
    50: '#7d8856',
    500: '#475a12',
    950: '#000000',
  },
}
SCSS
$custom: #475a12;
$custom-light: #7d8856;
$custom-dark: #000000;
JSON
{
  "hex": "#475a12",
  "rgb": {
    "r": 71,
    "g": 90,
    "b": 18
  },
  "hsl": {
    "h": 75.833,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.43674,
    "c": 0.09746,
    "h": 123.6
  },
  "luminance": 0.08696
}

Semantic roles & 50–950 ramp

primary
#475A12
secondary
#4E3593
accent
#3EEA6B
background
#F7F8F5
surface
#EEEFE9
border
#C9CAC5
text
#0A0B03
muted
#7C7C78

Preview Lab

Preview with #475A12

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

Preview Lab → · Contrast checker → · Palette generator →

#475A12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva