#475F0C#475F0C

#475F0C is a dark, moderate yellow-green. Relative luminance 0.096; OKLCH L 45.0% C 0.108 H 125.5°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#475F0C
RGBrgb(71, 95, 12)
HSLhsl(77, 78%, 21%)
HSVhsv(77, 87%, 37%)
CMYKcmyk(25.3%, 0%, 87.4%, 62.7%)
CIE-LABlab(37.02, -21.42, 40.14)
CIE-LCHlch(37.02, 45.50, 118.08°)
OKLaboklab(44.99% -0.0624 0.0876)
OKLCHoklch(44.99% 0.108 125.5)
XYZxyz(6.7572, 9.5505, 1.8352)
Luminance0.0955 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#475F0C #240C5F
analogous
#5F4D0C #475F0C #1E5F0C
triadic
#475F0C #0C475F #5F0C47
tetradic
#475F0C #0C5F4D #240C5F #5F0C1E
square
#475F0C #0C5F4D #240C5F #5F0C1E
split-complementary
#475F0C #0C1E5F #4D0C5F
monochromatic
#141B03 #1E2905 #475F0C #709513 #98CC1A

Accessibility & contrast

On white

7.22
#475F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #475F0C
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##475F0C#FFFFFF#000000##FFFFFF
##475F0C1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655800
Deuteranopia (green-blind)
#615715
Tritanopia (blue-blind)
#4B5A50
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #475f0c;
/* rgb */ color: rgb(71, 95, 12);
/* oklch */ color: oklch(45.0% 0.108 125.5);
Tailwind
colors: {
  custom: {
    50: '#7d8c54',
    500: '#475f0c',
    950: '#000000',
  },
}
SCSS
$custom: #475f0c;
$custom-light: #7d8c54;
$custom-dark: #000000;
JSON
{
  "hex": "#475f0c",
  "rgb": {
    "r": 71,
    "g": 95,
    "b": 12
  },
  "hsl": {
    "h": 77.349,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.44985,
    "c": 0.10754,
    "h": 125.5
  },
  "luminance": 0.09551
}

Semantic roles & 50–950 ramp

primary
#475F0C
secondary
#4D2D99
accent
#34F46B
background
#F7F8F5
surface
#EEF0E9
border
#C9CBC5
text
#0A0C03
muted
#7C7D78

Preview Lab

Preview with #475F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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