#4B5212#4B5212

#4B5212 is a dark, moderate yellow. Relative luminance 0.076; OKLCH L 41.9% C 0.085 H 115.6°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#4B5212
RGBrgb(75, 82, 18)
HSLhsl(67, 64%, 20%)
HSVhsv(67, 78%, 32%)
CMYKcmyk(8.5%, 0%, 78%, 67.8%)
CIE-LABlab(33.08, -12.15, 34.47)
CIE-LCHlch(33.08, 36.55, 109.42°)
OKLaboklab(41.89% -0.0367 0.0766)
OKLCHoklch(41.89% 0.085 115.6)
XYZxyz(6.0283, 7.5742, 1.7166)
Luminance0.0757 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B5212 #191252
analogous
#523912 #4B5212 #2B5212
triadic
#4B5212 #124B52 #52124B
tetradic
#4B5212 #125239 #191252 #52122B
square
#4B5212 #125239 #191252 #52122B
split-complementary
#4B5212 #122B52 #391252
monochromatic
#171906 #1D2007 #4B5212 #79841D #A7B628

Accessibility & contrast

On white

8.35
#4B5212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#4B5212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B5212
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B5212#FFFFFF#000000##FFFFFF
##4B52121.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D07
Deuteranopia (green-blind)
#584E17
Tritanopia (blue-blind)
#504D46
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4b5212;
/* rgb */ color: rgb(75, 82, 18);
/* oklch */ color: oklch(41.9% 0.085 115.6);
Tailwind
colors: {
  custom: {
    50: '#808255',
    500: '#4b5212',
    950: '#000000',
  },
}
SCSS
$custom: #4b5212;
$custom-light: #808255;
$custom-dark: #000000;
JSON
{
  "hex": "#4b5212",
  "rgb": {
    "r": 75,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 66.563,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.41894,
    "c": 0.08494,
    "h": 115.6
  },
  "luminance": 0.07574
}

Semantic roles & 50–950 ramp

primary
#4B5212
secondary
#3E358B
accent
#41E753
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0A0A03
muted
#7C7C78

Preview Lab

Preview with #4B5212

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

Preview Lab → · Contrast checker → · Palette generator →

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