#4D540C#4D540C

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

Color values

HEX#4D540C
RGBrgb(77, 84, 12)
HSLhsl(66, 75%, 19%)
HSVhsv(66, 86%, 33%)
CMYKcmyk(8.3%, 0%, 85.7%, 67.1%)
CIE-LABlab(33.87, -12.63, 37.51)
CIE-LCHlch(33.87, 39.58, 108.60°)
OKLaboklab(42.56% -0.0387 0.0818)
OKLCHoklch(42.56% 0.09 115.4)
XYZxyz(6.2974, 7.9451, 1.5496)
Luminance0.0795 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D540C #130C54
analogous
#54370C #4D540C #29540C
triadic
#4D540C #0C4D54 #540C4D
tetradic
#4D540C #0C5437 #130C54 #540C29
square
#4D540C #0C5437 #130C54 #540C29
split-complementary
#4D540C #0C2954 #370C54
monochromatic
#191B04 #1C1E04 #4D540C #7E8A14 #AFBF1B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D540C#FFFFFF#000000##FFFFFF
##4D540C1.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)
#5B4F00
Deuteranopia (green-blind)
#5A5013
Tritanopia (blue-blind)
#534F47
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4d540c;
/* rgb */ color: rgb(77, 84, 12);
/* oklch */ color: oklch(42.6% 0.090 115.4);
Tailwind
colors: {
  custom: {
    50: '#818453',
    500: '#4d540c',
    950: '#000000',
  },
}
SCSS
$custom: #4d540c;
$custom-light: #818453;
$custom-dark: #000000;
JSON
{
  "hex": "#4d540c",
  "rgb": {
    "r": 77,
    "g": 84,
    "b": 12
  },
  "hsl": {
    "h": 65.833,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.42558,
    "c": 0.09046,
    "h": 115.4
  },
  "luminance": 0.07945
}

Semantic roles & 50–950 ramp

primary
#4D540C
secondary
#362D8F
accent
#36F248
background
#F8F8F4
surface
#EFEFE7
border
#CACAC3
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #4D540C

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

Preview Lab → · Contrast checker → · Palette generator →

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