#4C5017#4C5017

#4C5017 is a dark, moderate yellow. Relative luminance 0.073; OKLCH L 41.5% C 0.078 H 113.2°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#4C5017
RGBrgb(76, 80, 23)
HSLhsl(64, 55%, 20%)
HSVhsv(64, 71%, 31%)
CMYKcmyk(5%, 0%, 71.2%, 68.6%)
CIE-LABlab(32.56, -10.18, 31.76)
CIE-LCHlch(32.56, 33.35, 107.77°)
OKLaboklab(41.51% -0.0307 0.0718)
OKLCHoklch(41.51% 0.078 113.2)
XYZxyz(6.0040, 7.3358, 1.9101)
Luminance0.0734 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C5017 #1B1750
analogous
#503817 #4C5017 #2F5017
triadic
#4C5017 #174C50 #50174C
tetradic
#4C5017 #175038 #1B1750 #50172F
square
#4C5017 #175038 #1B1750 #50172F
split-complementary
#4C5017 #172F50 #381750
monochromatic
#171807 #1F2009 #4C5017 #798025 #A6AF32

Accessibility & contrast

On white

8.51
#4C5017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#4C5017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C5017
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C5017#FFFFFF#000000##FFFFFF
##4C50171.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C0F
Deuteranopia (green-blind)
#564D1B
Tritanopia (blue-blind)
#514B44
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4c5017;
/* rgb */ color: rgb(76, 80, 23);
/* oklch */ color: oklch(41.5% 0.078 113.2);
Tailwind
colors: {
  custom: {
    50: '#808158',
    500: '#4c5017',
    950: '#000000',
  },
}
SCSS
$custom: #4c5017;
$custom-light: #808158;
$custom-dark: #000000;
JSON
{
  "hex": "#4c5017",
  "rgb": {
    "r": 76,
    "g": 80,
    "b": 23
  },
  "hsl": {
    "h": 64.211,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.41511,
    "c": 0.07808,
    "h": 113.2
  },
  "luminance": 0.07336
}

Semantic roles & 50–950 ramp

primary
#4C5017
secondary
#413C87
accent
#49DF54
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0A0A03
muted
#7C7C78

Preview Lab

Preview with #4C5017

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

Preview Lab → · Contrast checker → · Palette generator →

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