#4F510F#4F510F

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

Color values

HEX#4F510F
RGBrgb(79, 81, 15)
HSLhsl(62, 69%, 19%)
HSVhsv(62, 81%, 32%)
CMYKcmyk(2.5%, 0%, 81.5%, 68.2%)
CIE-LABlab(33.10, -9.77, 35.81)
CIE-LCHlch(33.10, 37.12, 105.27°)
OKLaboklab(41.99% -0.0307 0.0787)
OKLCHoklch(41.99% 0.084 111.3)
XYZxyz(6.2533, 7.5818, 1.5859)
Luminance0.0758 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F510F #110F51
analogous
#51320F #4F510F #2E510F
triadic
#4F510F #0F4F51 #510F4F
tetradic
#4F510F #0F5132 #110F51 #510F2E
square
#4F510F #0F5132 #110F51 #510F2E
split-complementary
#4F510F #0F2E51 #320F51
monochromatic
#191A05 #1D1D05 #4F510F #818519 #B4B822

Accessibility & contrast

On white

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

On black

2.52
#4F510F on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4F510F#FFFFFF#000000##FFFFFF
##4F510F1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D03
Deuteranopia (green-blind)
#584F14
Tritanopia (blue-blind)
#554B45
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4f510f;
/* rgb */ color: rgb(79, 81, 15);
/* oklch */ color: oklch(42.0% 0.084 111.3);
Tailwind
colors: {
  custom: {
    50: '#838153',
    500: '#4f510f',
    950: '#000000',
  },
}
SCSS
$custom: #4f510f;
$custom-light: #838153;
$custom-dark: #000000;
JSON
{
  "hex": "#4f510f",
  "rgb": {
    "r": 79,
    "g": 81,
    "b": 15
  },
  "hsl": {
    "h": 61.818,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.41989,
    "c": 0.08442,
    "h": 111.3
  },
  "luminance": 0.07582
}

Semantic roles & 50–950 ramp

primary
#4F510F
secondary
#33318B
accent
#3CEC42
background
#F8F7F4
surface
#EFEEE8
border
#CAC9C4
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #4F510F

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

Preview Lab → · Contrast checker → · Palette generator →

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