#4F510C#4F510C

#4F510C is a dark, moderate yellow. Relative luminance 0.076; OKLCH L 42.0% C 0.086 H 111.3°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#4F510C
RGBrgb(79, 81, 12)
HSLhsl(62, 74%, 18%)
HSVhsv(62, 85%, 32%)
CMYKcmyk(2.5%, 0%, 85.2%, 68.2%)
CIE-LABlab(33.08, -9.91, 36.87)
CIE-LCHlch(33.08, 38.18, 105.05°)
OKLaboklab(41.97% -0.0314 0.0803)
OKLCHoklch(41.97% 0.086 111.3)
XYZxyz(6.2335, 7.5738, 1.4813)
Luminance0.0757 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F510C #0E0C51
analogous
#51300C #4F510C #2C510C
triadic
#4F510C #0C4F51 #510C4F
tetradic
#4F510C #0C5130 #0E0C51 #510C2C
square
#4F510C #0C5130 #0E0C51 #510C2C
split-complementary
#4F510C #0C2C51 #300C51
monochromatic
#1A1B04 #1B1C04 #4F510C #838614 #B7BC1C

Accessibility & contrast

On white

8.35
#4F510C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#4F510C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F510C
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F510C#FFFFFF#000000##FFFFFF
##4F510C1.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D00
Deuteranopia (green-blind)
#584F12
Tritanopia (blue-blind)
#554B44
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4f510c;
/* rgb */ color: rgb(79, 81, 12);
/* oklch */ color: oklch(42.0% 0.086 111.3);
Tailwind
colors: {
  custom: {
    50: '#838152',
    500: '#4f510c',
    950: '#000000',
  },
}
SCSS
$custom: #4f510c;
$custom-light: #838152;
$custom-dark: #000000;
JSON
{
  "hex": "#4f510c",
  "rgb": {
    "r": 79,
    "g": 81,
    "b": 12
  },
  "hsl": {
    "h": 61.739,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.4197,
    "c": 0.0862,
    "h": 111.3
  },
  "luminance": 0.07574
}

Semantic roles & 50–950 ramp

primary
#4F510C
secondary
#2F2C8C
accent
#37F13C
background
#F8F7F4
surface
#EFEEE7
border
#CAC9C3
text
#0B0A02
muted
#7C7C78

Preview Lab

Preview with #4F510C

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

Preview Lab → · Contrast checker → · Palette generator →

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