#4B540F#4B540F

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

Color values

HEX#4B540F
RGBrgb(75, 84, 15)
HSLhsl(68, 70%, 19%)
HSVhsv(68, 82%, 33%)
CMYKcmyk(10.7%, 0%, 82.1%, 67.1%)
CIE-LABlab(33.71, -13.46, 36.25)
CIE-LCHlch(33.71, 38.67, 110.37°)
OKLaboklab(42.4% -0.0406 0.0798)
OKLCHoklch(42.4% 0.09 117)
XYZxyz(6.1584, 7.8711, 1.6467)
Luminance0.0787 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B540F #180F54
analogous
#543B0F #4B540F #29540F
triadic
#4B540F #0F4B54 #540F4B
tetradic
#4B540F #0F543B #180F54 #540F29
square
#4B540F #0F543B #180F54 #540F29
split-complementary
#4B540F #0F2954 #3B0F54
monochromatic
#171A05 #1D2006 #4B540F #798818 #A8BC22

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4B540F#FFFFFF#000000##FFFFFF
##4B540F1.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)
#5A4F02
Deuteranopia (green-blind)
#595015
Tritanopia (blue-blind)
#504F47
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4b540f;
/* rgb */ color: rgb(75, 84, 15);
/* oklch */ color: oklch(42.4% 0.090 117.0);
Tailwind
colors: {
  custom: {
    50: '#808454',
    500: '#4b540f',
    950: '#000000',
  },
}
SCSS
$custom: #4b540f;
$custom-light: #808454;
$custom-dark: #000000;
JSON
{
  "hex": "#4b540f",
  "rgb": {
    "r": 75,
    "g": 84,
    "b": 15
  },
  "hsl": {
    "h": 67.826,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.42396,
    "c": 0.08952,
    "h": 117
  },
  "luminance": 0.07871
}

Semantic roles & 50–950 ramp

primary
#4B540F
secondary
#3D318E
accent
#3BED52
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0A0A03
muted
#7C7C78

Preview Lab

Preview with #4B540F

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

Preview Lab → · Contrast checker → · Palette generator →

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