#4D5312#4D5312

#4D5312 is a dark, moderate yellow. Relative luminance 0.078; OKLCH L 42.3% C 0.086 H 114.7°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#4D5312
RGBrgb(77, 83, 18)
HSLhsl(66, 64%, 20%)
HSVhsv(66, 78%, 33%)
CMYKcmyk(7.2%, 0%, 78.3%, 67.5%)
CIE-LABlab(33.58, -11.75, 35.02)
CIE-LCHlch(33.58, 36.94, 108.55°)
OKLaboklab(42.34% -0.0357 0.0777)
OKLCHoklch(42.34% 0.086 114.7)
XYZxyz(6.2632, 7.8081, 1.7493)
Luminance0.0781 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D5312 #181253
analogous
#533812 #4D5312 #2D5312
triadic
#4D5312 #124D53 #53124D
tetradic
#4D5312 #125338 #181253 #53122D
square
#4D5312 #125338 #181253 #53122D
split-complementary
#4D5312 #122D53 #381253
monochromatic
#171905 #1E2107 #4D5312 #7C851D #AAB828

Accessibility & contrast

On white

8.20
#4D5312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#4D5312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D5312
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D5312#FFFFFF#000000##FFFFFF
##4D53121.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4E06
Deuteranopia (green-blind)
#595017
Tritanopia (blue-blind)
#534E46
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4d5312;
/* rgb */ color: rgb(77, 83, 18);
/* oklch */ color: oklch(42.3% 0.086 114.7);
Tailwind
colors: {
  custom: {
    50: '#818355',
    500: '#4d5312',
    950: '#000000',
  },
}
SCSS
$custom: #4d5312;
$custom-light: #818355;
$custom-dark: #000000;
JSON
{
  "hex": "#4d5312",
  "rgb": {
    "r": 77,
    "g": 83,
    "b": 18
  },
  "hsl": {
    "h": 65.538,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.42338,
    "c": 0.0855,
    "h": 114.7
  },
  "luminance": 0.07808
}

Semantic roles & 50–950 ramp

primary
#4D5312
secondary
#3D358C
accent
#40E750
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #4D5312

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

Preview Lab → · Contrast checker → · Palette generator →

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