#474E12#474E12

#474E12 is a dark, moderate yellow. Relative luminance 0.068; OKLCH L 40.5% C 0.081 H 115.9°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#474E12
RGBrgb(71, 78, 18)
HSLhsl(67, 63%, 19%)
HSVhsv(67, 77%, 31%)
CMYKcmyk(9%, 0%, 76.9%, 69.4%)
CIE-LABlab(31.42, -11.81, 32.73)
CIE-LCHlch(31.42, 34.79, 109.84°)
OKLaboklab(40.48% -0.0355 0.0731)
OKLCHoklch(40.48% 0.081 115.9)
XYZxyz(5.4322, 6.8321, 1.6047)
Luminance0.0683 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#474E12 #19124E
analogous
#4E3712 #474E12 #294E12
triadic
#474E12 #12474E #4E1247
tetradic
#474E12 #124E37 #19124E #4E1229
square
#474E12 #124E37 #19124E #4E1229
split-complementary
#474E12 #12294E #37124E
monochromatic
#171906 #1A1C07 #474E12 #74801D #A2B129

Accessibility & contrast

On white

8.87
#474E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#474E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #474E12
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##474E12#FFFFFF#000000##FFFFFF
##474E121.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A08
Deuteranopia (green-blind)
#534A17
Tritanopia (blue-blind)
#4C4942
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #474e12;
/* rgb */ color: rgb(71, 78, 18);
/* oklch */ color: oklch(40.5% 0.081 115.9);
Tailwind
colors: {
  custom: {
    50: '#7c7f54',
    500: '#474e12',
    950: '#000000',
  },
}
SCSS
$custom: #474e12;
$custom-light: #7c7f54;
$custom-dark: #000000;
JSON
{
  "hex": "#474e12",
  "rgb": {
    "r": 71,
    "g": 78,
    "b": 18
  },
  "hsl": {
    "h": 67,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.40476,
    "c": 0.08122,
    "h": 115.9
  },
  "luminance": 0.06832
}

Semantic roles & 50–950 ramp

primary
#474E12
secondary
#3E3587
accent
#42E655
background
#F7F7F5
surface
#EEEEE9
border
#C9C9C5
text
#0A0A03
muted
#7C7C78

Preview Lab

Preview with #474E12

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

Preview Lab → · Contrast checker → · Palette generator →

#474E12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva