#4B540C#4B540C

#4B540C is a dark, moderate yellow. Relative luminance 0.079; OKLCH L 42.4% C 0.091 H 116.9°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#4B540C
RGBrgb(75, 84, 12)
HSLhsl(68, 75%, 19%)
HSVhsv(68, 86%, 33%)
CMYKcmyk(10.7%, 0%, 85.7%, 67.1%)
CIE-LABlab(33.70, -13.60, 37.29)
CIE-LCHlch(33.70, 39.70, 110.04°)
OKLaboklab(42.38% -0.0413 0.0814)
OKLCHoklch(42.38% 0.091 116.9)
XYZxyz(6.1385, 7.8631, 1.5421)
Luminance0.0786 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B540C #150C54
analogous
#54390C #4B540C #27540C
triadic
#4B540C #0C4B54 #540C4B
tetradic
#4B540C #0C5439 #150C54 #540C27
square
#4B540C #0C5439 #150C54 #540C27
split-complementary
#4B540C #0C2754 #390C54
monochromatic
#181B04 #1B1E04 #4B540C #7B8A14 #ABBF1B

Accessibility & contrast

On white

8.16
#4B540C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#4B540C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B540C
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B540C#FFFFFF#000000##FFFFFF
##4B540C1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F00
Deuteranopia (green-blind)
#5A5013
Tritanopia (blue-blind)
#504F47
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4b540c;
/* rgb */ color: rgb(75, 84, 12);
/* oklch */ color: oklch(42.4% 0.091 116.9);
Tailwind
colors: {
  custom: {
    50: '#808452',
    500: '#4b540c',
    950: '#000000',
  },
}
SCSS
$custom: #4b540c;
$custom-light: #808452;
$custom-dark: #000000;
JSON
{
  "hex": "#4b540c",
  "rgb": {
    "r": 75,
    "g": 84,
    "b": 12
  },
  "hsl": {
    "h": 67.5,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.42377,
    "c": 0.09126,
    "h": 116.9
  },
  "luminance": 0.07863
}

Semantic roles & 50–950 ramp

primary
#4B540C
secondary
#392D8F
accent
#36F24E
background
#F8F8F4
surface
#EFEFE7
border
#CACAC3
text
#0A0A03
muted
#7C7C78

Preview Lab

Preview with #4B540C

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

Preview Lab → · Contrast checker → · Palette generator →

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