#4D540F#4D540F

#4D540F is a dark, moderate yellow. Relative luminance 0.080; OKLCH L 42.6% C 0.089 H 115.4°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#4D540F
RGBrgb(77, 84, 15)
HSLhsl(66, 70%, 19%)
HSVhsv(66, 82%, 33%)
CMYKcmyk(8.3%, 0%, 82.1%, 67.1%)
CIE-LABlab(33.88, -12.49, 36.48)
CIE-LCHlch(33.88, 38.55, 108.90°)
OKLaboklab(42.58% -0.0381 0.0802)
OKLCHoklch(42.58% 0.089 115.4)
XYZxyz(6.3173, 7.9530, 1.6541)
Luminance0.0795 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D540F #160F54
analogous
#54390F #4D540F #2B540F
triadic
#4D540F #0F4D54 #540F4D
tetradic
#4D540F #0F5439 #160F54 #540F2B
square
#4D540F #0F5439 #160F54 #540F2B
split-complementary
#4D540F #0F2B54 #390F54
monochromatic
#181A05 #1D2006 #4D540F #7D8818 #ACBC22

Accessibility & contrast

On white

8.11
#4D540F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#4D540F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D540F
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D540F#FFFFFF#000000##FFFFFF
##4D540F1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B4F02
Deuteranopia (green-blind)
#5A5015
Tritanopia (blue-blind)
#534F47
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4d540f;
/* rgb */ color: rgb(77, 84, 15);
/* oklch */ color: oklch(42.6% 0.089 115.4);
Tailwind
colors: {
  custom: {
    50: '#818454',
    500: '#4d540f',
    950: '#000000',
  },
}
SCSS
$custom: #4d540f;
$custom-light: #818454;
$custom-dark: #000000;
JSON
{
  "hex": "#4d540f",
  "rgb": {
    "r": 77,
    "g": 84,
    "b": 15
  },
  "hsl": {
    "h": 66.087,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.42577,
    "c": 0.08874,
    "h": 115.4
  },
  "luminance": 0.07953
}

Semantic roles & 50–950 ramp

primary
#4D540F
secondary
#3A318E
accent
#3BED4D
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #4D540F

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

Preview Lab → · Contrast checker → · Palette generator →

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