#4F5218#4F5218

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

Color values

HEX#4F5218
RGBrgb(79, 82, 24)
HSLhsl(63, 55%, 21%)
HSVhsv(63, 71%, 32%)
CMYKcmyk(3.7%, 0%, 70.7%, 67.8%)
CIE-LABlab(33.48, -9.81, 32.33)
CIE-LCHlch(33.48, 33.78, 106.87°)
OKLaboklab(42.32% -0.0298 0.0731)
OKLCHoklch(42.32% 0.079 112.2)
XYZxyz(6.4068, 7.7629, 2.0249)
Luminance0.0776 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F5218 #1B1852
analogous
#523818 #4F5218 #325218
triadic
#4F5218 #184F52 #52184F
tetradic
#4F5218 #185238 #1B1852 #521832
square
#4F5218 #185238 #1B1852 #521832
split-complementary
#4F5218 #183252 #381852
monochromatic
#171807 #21230A #4F5218 #7D8126 #AAB134

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4F5218#FFFFFF#000000##FFFFFF
##4F52181.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)
#594E10
Deuteranopia (green-blind)
#594F1C
Tritanopia (blue-blind)
#554D46
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4f5218;
/* rgb */ color: rgb(79, 82, 24);
/* oklch */ color: oklch(42.3% 0.079 112.2);
Tailwind
colors: {
  custom: {
    50: '#828258',
    500: '#4f5218',
    950: '#000000',
  },
}
SCSS
$custom: #4f5218;
$custom-light: #828258;
$custom-dark: #000000;
JSON
{
  "hex": "#4f5218",
  "rgb": {
    "r": 79,
    "g": 82,
    "b": 24
  },
  "hsl": {
    "h": 63.103,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.42321,
    "c": 0.07891,
    "h": 112.2
  },
  "luminance": 0.07763
}

Semantic roles & 50–950 ramp

primary
#4F5218
secondary
#413D89
accent
#4ADE51
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #4F5218

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

Preview Lab → · Contrast checker → · Palette generator →

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