#4F5412#4F5412

#4F5412 is a dark, moderate yellow. Relative luminance 0.080; OKLCH L 42.8% C 0.086 H 113.8°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#4F5412
RGBrgb(79, 84, 18)
HSLhsl(65, 65%, 20%)
HSVhsv(65, 79%, 33%)
CMYKcmyk(6%, 0%, 78.6%, 67.1%)
CIE-LABlab(34.08, -11.35, 35.56)
CIE-LCHlch(34.08, 37.33, 107.70°)
OKLaboklab(42.78% -0.0348 0.0787)
OKLCHoklch(42.78% 0.086 113.8)
XYZxyz(6.5041, 8.0467, 1.7827)
Luminance0.0805 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F5412 #171254
analogous
#543812 #4F5412 #2E5412
triadic
#4F5412 #124F54 #54124F
tetradic
#4F5412 #125438 #171254 #54122E
square
#4F5412 #125438 #171254 #54122E
split-complementary
#4F5412 #122E54 #381254
monochromatic
#181905 #202207 #4F5412 #7E861D #AEB928

Accessibility & contrast

On white

8.05
#4F5412 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#4F5412 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F5412
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F5412#FFFFFF#000000##FFFFFF
##4F54121.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5006
Deuteranopia (green-blind)
#5B5117
Tritanopia (blue-blind)
#554F47
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4f5412;
/* rgb */ color: rgb(79, 84, 18);
/* oklch */ color: oklch(42.8% 0.086 113.8);
Tailwind
colors: {
  custom: {
    50: '#838455',
    500: '#4f5412',
    950: '#000000',
  },
}
SCSS
$custom: #4f5412;
$custom-light: #838455;
$custom-dark: #000000;
JSON
{
  "hex": "#4f5412",
  "rgb": {
    "r": 79,
    "g": 84,
    "b": 18
  },
  "hsl": {
    "h": 64.545,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.42783,
    "c": 0.08607,
    "h": 113.8
  },
  "luminance": 0.08047
}

Semantic roles & 50–950 ramp

primary
#4F5412
secondary
#3C358D
accent
#40E84D
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #4F5412

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

Preview Lab → · Contrast checker → · Palette generator →

#4F5412 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva