#4C5312#4C5312

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

Color values

HEX#4C5312
RGBrgb(76, 83, 18)
HSLhsl(66, 64%, 20%)
HSVhsv(66, 78%, 33%)
CMYKcmyk(8.4%, 0%, 78.3%, 67.5%)
CIE-LABlab(33.49, -12.24, 34.90)
CIE-LCHlch(33.49, 36.98, 109.32°)
OKLaboklab(42.25% -0.037 0.0775)
OKLCHoklch(42.25% 0.086 115.6)
XYZxyz(6.1831, 7.7668, 1.7456)
Luminance0.0777 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C5312 #191253
analogous
#533A12 #4C5312 #2B5312
triadic
#4C5312 #124C53 #53124C
tetradic
#4C5312 #12533A #191253 #53122B
square
#4C5312 #12533A #191253 #53122B
split-complementary
#4C5312 #122B53 #3A1253
monochromatic
#171905 #1E2107 #4C5312 #7A851D #A8B828

Accessibility & contrast

On white

8.22
#4C5312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#4C5312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C5312
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C5312#FFFFFF#000000##FFFFFF
##4C53121.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E06
Deuteranopia (green-blind)
#594F17
Tritanopia (blue-blind)
#514E46
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4c5312;
/* rgb */ color: rgb(76, 83, 18);
/* oklch */ color: oklch(42.2% 0.086 115.6);
Tailwind
colors: {
  custom: {
    50: '#808355',
    500: '#4c5312',
    950: '#000000',
  },
}
SCSS
$custom: #4c5312;
$custom-light: #808355;
$custom-dark: #000000;
JSON
{
  "hex": "#4c5312",
  "rgb": {
    "r": 76,
    "g": 83,
    "b": 18
  },
  "hsl": {
    "h": 66.462,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.42246,
    "c": 0.08586,
    "h": 115.6
  },
  "luminance": 0.07767
}

Semantic roles & 50–950 ramp

primary
#4C5312
secondary
#3E358C
accent
#40E752
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0A0A03
muted
#7C7C78

Preview Lab

Preview with #4C5312

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

Preview Lab → · Contrast checker → · Palette generator →

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