#4F540C#4F540C

#4F540C is a dark, moderate yellow. Relative luminance 0.080; OKLCH L 42.7% C 0.090 H 113.8°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#4F540C
RGBrgb(79, 84, 12)
HSLhsl(64, 75%, 19%)
HSVhsv(64, 86%, 33%)
CMYKcmyk(6%, 0%, 85.7%, 67.1%)
CIE-LABlab(34.04, -11.65, 37.74)
CIE-LCHlch(34.04, 39.49, 107.15°)
OKLaboklab(42.74% -0.0361 0.0821)
OKLCHoklch(42.74% 0.09 113.8)
XYZxyz(6.4613, 8.0296, 1.5573)
Luminance0.0803 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F540C #110C54
analogous
#54350C #4F540C #2B540C
triadic
#4F540C #0C4F54 #540C4F
tetradic
#4F540C #0C5435 #110C54 #540C2B
square
#4F540C #0C5435 #110C54 #540C2B
split-complementary
#4F540C #0C2B54 #350C54
monochromatic
#191B04 #1D1E04 #4F540C #818A14 #B4BF1B

Accessibility & contrast

On white

8.06
#4F540C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#4F540C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F540C
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F540C#FFFFFF#000000##FFFFFF
##4F540C1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B4F00
Deuteranopia (green-blind)
#5B5113
Tritanopia (blue-blind)
#554E47
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4f540c;
/* rgb */ color: rgb(79, 84, 12);
/* oklch */ color: oklch(42.7% 0.090 113.8);
Tailwind
colors: {
  custom: {
    50: '#838453',
    500: '#4f540c',
    950: '#000000',
  },
}
SCSS
$custom: #4f540c;
$custom-light: #838453;
$custom-dark: #000000;
JSON
{
  "hex": "#4f540c",
  "rgb": {
    "r": 79,
    "g": 84,
    "b": 12
  },
  "hsl": {
    "h": 64.167,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.42743,
    "c": 0.08974,
    "h": 113.8
  },
  "luminance": 0.08029
}

Semantic roles & 50–950 ramp

primary
#4F540C
secondary
#332D8F
accent
#36F243
background
#F8F8F4
surface
#EFEFE7
border
#CACAC3
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #4F540C

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

Preview Lab → · Contrast checker → · Palette generator →

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