#474812#474812

#474812 is a dark, moderate yellow. Relative luminance 0.060; OKLCH L 38.9% C 0.074 H 110.4°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#474812
RGBrgb(71, 72, 18)
HSLhsl(61, 60%, 18%)
HSVhsv(61, 75%, 28%)
CMYKcmyk(1.4%, 0%, 75%, 71.8%)
CIE-LABlab(29.46, -8.28, 30.76)
CIE-LCHlch(29.46, 31.86, 105.06°)
OKLaboklab(38.9% -0.0256 0.0689)
OKLCHoklch(38.9% 0.074 110.4)
XYZxyz(5.0252, 6.0181, 1.4690)
Luminance0.0602 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#474812 #131248
analogous
#482E12 #474812 #2C4812
triadic
#474812 #124748 #481247
tetradic
#474812 #12482E #131248 #48122C
square
#474812 #12482E #131248 #48122C
split-complementary
#474812 #122C48 #2E1248
monochromatic
#181806 #181806 #474812 #77791E #A8AA2A

Accessibility & contrast

On white

9.53
#474812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#474812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #474812
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##474812#FFFFFF#000000##FFFFFF
##4748121.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E450A
Deuteranopia (green-blind)
#4F4616
Tritanopia (blue-blind)
#4C433D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #474812;
/* rgb */ color: rgb(71, 72, 18);
/* oklch */ color: oklch(38.9% 0.074 110.4);
Tailwind
colors: {
  custom: {
    50: '#7c7a54',
    500: '#474812',
    950: '#000000',
  },
}
SCSS
$custom: #474812;
$custom-light: #7c7a54;
$custom-dark: #000000;
JSON
{
  "hex": "#474812",
  "rgb": {
    "r": 71,
    "g": 72,
    "b": 18
  },
  "hsl": {
    "h": 61.111,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.38903,
    "c": 0.07354,
    "h": 110.4
  },
  "luminance": 0.06018
}

Semantic roles & 50–950 ramp

primary
#474812
secondary
#363581
accent
#45E348
background
#F7F7F4
surface
#EEEDE7
border
#C9C8C3
text
#0A0903
muted
#7C7B78

Preview Lab

Preview with #474812

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

Preview Lab → · Contrast checker → · Palette generator →

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