#475F12#475F12

#475F12 is a mid, moderate yellow-green. Relative luminance 0.096; OKLCH L 45.0% C 0.104 H 125.9°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#475F12
RGBrgb(71, 95, 18)
HSLhsl(79, 68%, 22%)
HSVhsv(79, 81%, 37%)
CMYKcmyk(25.3%, 0%, 81.1%, 62.7%)
CIE-LABlab(37.05, -21.12, 38.18)
CIE-LCHlch(37.05, 43.63, 118.95°)
OKLaboklab(45.02% -0.0611 0.0845)
OKLCHoklch(45.02% 0.104 125.9)
XYZxyz(6.8000, 9.5676, 2.0606)
Luminance0.0957 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#475F12 #2A125F
analogous
#5F5112 #475F12 #215F12
triadic
#475F12 #12475F #5F1247
tetradic
#475F12 #125F51 #2A125F #5F1221
square
#475F12 #125F51 #2A125F #5F1221
split-complementary
#475F12 #12215F #51125F
monochromatic
#131A05 #212C08 #475F12 #6D921C #94C625

Accessibility & contrast

On white

7.21
#475F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#475F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #475F12
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##475F12#FFFFFF#000000##FFFFFF
##475F121.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655802
Deuteranopia (green-blind)
#61571A
Tritanopia (blue-blind)
#4A5A51
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #475f12;
/* rgb */ color: rgb(71, 95, 18);
/* oklch */ color: oklch(45.0% 0.104 125.9);
Tailwind
colors: {
  custom: {
    50: '#7d8c57',
    500: '#475f12',
    950: '#000000',
  },
}
SCSS
$custom: #475f12;
$custom-light: #7d8c57;
$custom-dark: #000000;
JSON
{
  "hex": "#475f12",
  "rgb": {
    "r": 71,
    "g": 95,
    "b": 18
  },
  "hsl": {
    "h": 78.701,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.45021,
    "c": 0.10431,
    "h": 125.9
  },
  "luminance": 0.09568
}

Semantic roles & 50–950 ramp

primary
#475F12
secondary
#543697
accent
#3DEB73
background
#F7F8F5
surface
#EEF0E9
border
#C9CBC5
text
#0A0C03
muted
#7C7D78

Preview Lab

Preview with #475F12

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

Preview Lab → · Contrast checker → · Palette generator →

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