#4F5217#4F5217

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

Color values

HEX#4F5217
RGBrgb(79, 82, 23)
HSLhsl(63, 56%, 21%)
HSVhsv(63, 72%, 32%)
CMYKcmyk(3.7%, 0%, 72%, 67.8%)
CIE-LABlab(33.48, -9.88, 32.79)
CIE-LCHlch(33.48, 34.24, 106.77°)
OKLaboklab(42.31% -0.0301 0.0739)
OKLCHoklch(42.31% 0.08 112.2)
XYZxyz(6.3966, 7.7589, 1.9711)
Luminance0.0776 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F5217 #1A1752
analogous
#523717 #4F5217 #315217
triadic
#4F5217 #174F52 #52174F
tetradic
#4F5217 #175237 #1A1752 #521731
square
#4F5217 #175237 #1A1752 #521731
split-complementary
#4F5217 #173152 #371752
monochromatic
#171807 #21220A #4F5217 #7D8224 #ABB232

Accessibility & contrast

On white

8.23
#4F5217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F5217
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F5217#FFFFFF#000000##FFFFFF
##4F52171.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E0F
Deuteranopia (green-blind)
#594F1B
Tritanopia (blue-blind)
#554D46
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4f5217;
/* rgb */ color: rgb(79, 82, 23);
/* oklch */ color: oklch(42.3% 0.080 112.2);
Tailwind
colors: {
  custom: {
    50: '#828258',
    500: '#4f5217',
    950: '#000000',
  },
}
SCSS
$custom: #4f5217;
$custom-light: #828258;
$custom-dark: #000000;
JSON
{
  "hex": "#4f5217",
  "rgb": {
    "r": 79,
    "g": 82,
    "b": 23
  },
  "hsl": {
    "h": 63.051,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.42311,
    "c": 0.07975,
    "h": 112.2
  },
  "luminance": 0.07759
}

Semantic roles & 50–950 ramp

primary
#4F5217
secondary
#403C89
accent
#48DF50
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #4F5217

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

Preview Lab → · Contrast checker → · Palette generator →

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