#4D5812#4D5812

#4D5812 is a dark, moderate yellow. Relative luminance 0.086; OKLCH L 43.6% C 0.092 H 118.3°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#4D5812
RGBrgb(77, 88, 18)
HSLhsl(69, 66%, 21%)
HSVhsv(69, 80%, 35%)
CMYKcmyk(12.5%, 0%, 79.5%, 65.5%)
CIE-LABlab(35.20, -14.58, 36.58)
CIE-LCHlch(35.20, 39.38, 111.73°)
OKLaboklab(43.64% -0.0436 0.081)
OKLCHoklch(43.64% 0.092 118.3)
XYZxyz(6.6596, 8.6010, 1.8815)
Luminance0.0860 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D5812 #1D1258
analogous
#584012 #4D5812 #2A5812
triadic
#4D5812 #124D58 #58124D
tetradic
#4D5812 #125840 #1D1258 #58122A
square
#4D5812 #125840 #1D1258 #58122A
split-complementary
#4D5812 #122A58 #401258
monochromatic
#161905 #212508 #4D5812 #798B1C #A6BE27

Accessibility & contrast

On white

7.72
#4D5812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#4D5812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D5812
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D5812#FFFFFF#000000##FFFFFF
##4D58121.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5305
Deuteranopia (green-blind)
#5D5318
Tritanopia (blue-blind)
#52534B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4d5812;
/* rgb */ color: rgb(77, 88, 18);
/* oklch */ color: oklch(43.6% 0.092 118.3);
Tailwind
colors: {
  custom: {
    50: '#818756',
    500: '#4d5812',
    950: '#000000',
  },
}
SCSS
$custom: #4d5812;
$custom-light: #818756;
$custom-dark: #000000;
JSON
{
  "hex": "#4d5812",
  "rgb": {
    "r": 77,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 69.429,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.43643,
    "c": 0.09194,
    "h": 118.3
  },
  "luminance": 0.08601
}

Semantic roles & 50–950 ramp

primary
#4D5812
secondary
#443591
accent
#3FE95A
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0B03
muted
#7C7C78

Preview Lab

Preview with #4D5812

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

Preview Lab → · Contrast checker → · Palette generator →

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