#4F540F#4F540F

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

Color values

HEX#4F540F
RGBrgb(79, 84, 15)
HSLhsl(64, 70%, 19%)
HSVhsv(64, 82%, 33%)
CMYKcmyk(6%, 0%, 82.1%, 67.1%)
CIE-LABlab(34.06, -11.51, 36.70)
CIE-LCHlch(34.06, 38.46, 107.41°)
OKLaboklab(42.76% -0.0355 0.0806)
OKLCHoklch(42.76% 0.088 113.8)
XYZxyz(6.4812, 8.0375, 1.6618)
Luminance0.0804 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F540F #140F54
analogous
#54370F #4F540F #2D540F
triadic
#4F540F #0F4F54 #540F4F
tetradic
#4F540F #0F5437 #140F54 #540F2D
square
#4F540F #0F5437 #140F54 #540F2D
split-complementary
#4F540F #0F2D54 #370F54
monochromatic
#181A05 #1E2006 #4F540F #808818 #B1BC22

Accessibility & contrast

On white

8.05
#4F540F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F540F
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F540F#FFFFFF#000000##FFFFFF
##4F540F1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f540f;
/* rgb */ color: rgb(79, 84, 15);
/* oklch */ color: oklch(42.8% 0.088 113.8);
Tailwind
colors: {
  custom: {
    50: '#838454',
    500: '#4f540f',
    950: '#000000',
  },
}
SCSS
$custom: #4f540f;
$custom-light: #838454;
$custom-dark: #000000;
JSON
{
  "hex": "#4f540f",
  "rgb": {
    "r": 79,
    "g": 84,
    "b": 15
  },
  "hsl": {
    "h": 64.348,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.42762,
    "c": 0.08803,
    "h": 113.8
  },
  "luminance": 0.08037
}

Semantic roles & 50–950 ramp

primary
#4F540F
secondary
#38318E
accent
#3BED48
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #4F540F

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

Preview Lab → · Contrast checker → · Palette generator →

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