#4D5017#4D5017

#4D5017 is a dark, moderate yellow. Relative luminance 0.074; OKLCH L 41.6% C 0.078 H 112.2°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#4D5017
RGBrgb(77, 80, 23)
HSLhsl(63, 55%, 20%)
HSVhsv(63, 71%, 31%)
CMYKcmyk(3.7%, 0%, 71.2%, 68.6%)
CIE-LABlab(32.65, -9.69, 31.88)
CIE-LCHlch(32.65, 33.32, 106.90°)
OKLaboklab(41.61% -0.0294 0.072)
OKLCHoklch(41.61% 0.078 112.2)
XYZxyz(6.0841, 7.3771, 1.9139)
Luminance0.0738 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D5017 #1A1750
analogous
#503617 #4D5017 #305017
triadic
#4D5017 #174D50 #50174D
tetradic
#4D5017 #175036 #1A1750 #501730
square
#4D5017 #175036 #1A1750 #501730
split-complementary
#4D5017 #173050 #361750
monochromatic
#171807 #1F2009 #4D5017 #7B8025 #A9AF32

Accessibility & contrast

On white

8.48
#4D5017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#4D5017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D5017
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D5017#FFFFFF#000000##FFFFFF
##4D50171.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d5017;
/* rgb */ color: rgb(77, 80, 23);
/* oklch */ color: oklch(41.6% 0.078 112.2);
Tailwind
colors: {
  custom: {
    50: '#818058',
    500: '#4d5017',
    950: '#000000',
  },
}
SCSS
$custom: #4d5017;
$custom-light: #818058;
$custom-dark: #000000;
JSON
{
  "hex": "#4d5017",
  "rgb": {
    "r": 77,
    "g": 80,
    "b": 23
  },
  "hsl": {
    "h": 63.158,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.41606,
    "c": 0.07779,
    "h": 112.2
  },
  "luminance": 0.07377
}

Semantic roles & 50–950 ramp

primary
#4D5017
secondary
#403C87
accent
#49DF51
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0A0A03
muted
#7C7C78

Preview Lab

Preview with #4D5017

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

Preview Lab → · Contrast checker → · Palette generator →

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