#5F6813#5F6813

#5F6813 is a mid, moderate yellow. Relative luminance 0.124; OKLCH L 49.3% C 0.104 H 115.8°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#5F6813
RGBrgb(95, 104, 19)
HSLhsl(66, 69%, 24%)
HSVhsv(66, 82%, 41%)
CMYKcmyk(8.7%, 0%, 81.7%, 59.2%)
CIE-LABlab(41.81, -14.84, 42.91)
CIE-LCHlch(41.81, 45.41, 109.08°)
OKLaboklab(49.33% -0.0453 0.0939)
OKLCHoklch(49.33% 0.104 115.8)
XYZxyz(9.7874, 12.3807, 2.4901)
Luminance0.1238 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6813 #1C1368
analogous
#684713 #5F6813 #356813
triadic
#5F6813 #135F68 #68135F
tetradic
#5F6813 #136847 #1C1368 #681335
square
#5F6813 #136847 #1C1368 #681335
split-complementary
#5F6813 #133568 #471368
monochromatic
#181A05 #30340A #5F6813 #8E9C1C #BECF26

Accessibility & contrast

On white

6.04
#5F6813 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5F6813 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F6813
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6813#FFFFFF#000000##FFFFFF
##5F68131.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706200
Deuteranopia (green-blind)
#6F631B
Tritanopia (blue-blind)
#666258
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5f6813;
/* rgb */ color: rgb(95, 104, 19);
/* oklch */ color: oklch(49.3% 0.104 115.8);
Tailwind
colors: {
  custom: {
    50: '#8f9359',
    500: '#5f6813',
    950: '#000000',
  },
}
SCSS
$custom: #5f6813;
$custom-light: #8f9359;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6813",
  "rgb": {
    "r": 95,
    "g": 104,
    "b": 19
  },
  "hsl": {
    "h": 66.353,
    "s": 69.106,
    "l": 24.118
  },
  "oklch": {
    "l": 0.49333,
    "c": 0.10426,
    "h": 115.8
  },
  "luminance": 0.12381
}

Semantic roles & 50–950 ramp

primary
#5F6813
secondary
#42379F
accent
#3CEC4F
background
#F9F9F5
surface
#F1F1E9
border
#CBCBC5
text
#0D0D04
muted
#7E7E79

Preview Lab

Preview with #5F6813

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

Preview Lab → · Contrast checker → · Palette generator →

#5F6813 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva