#5F6812#5F6812

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

Color values

HEX#5F6812
RGBrgb(95, 104, 18)
HSLhsl(66, 70%, 24%)
HSVhsv(66, 83%, 41%)
CMYKcmyk(8.7%, 0%, 82.7%, 59.2%)
CIE-LABlab(41.81, -14.89, 43.24)
CIE-LCHlch(41.81, 45.73, 109.00°)
OKLaboklab(49.33% -0.0455 0.0944)
OKLCHoklch(49.33% 0.105 115.7)
XYZxyz(9.7791, 12.3774, 2.4461)
Luminance0.1238 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6812 #1B1268
analogous
#684612 #5F6812 #346812
triadic
#5F6812 #125F68 #68125F
tetradic
#5F6812 #126846 #1B1268 #681234
square
#5F6812 #126846 #1B1268 #681234
split-complementary
#5F6812 #123468 #461268
monochromatic
#181A05 #2F3409 #5F6812 #8F9C1B #BED024

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F6812#FFFFFF#000000##FFFFFF
##5F68121.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)
#6F631A
Tritanopia (blue-blind)
#666158
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5f6812;
/* rgb */ color: rgb(95, 104, 18);
/* oklch */ color: oklch(49.3% 0.105 115.7);
Tailwind
colors: {
  custom: {
    50: '#8f9359',
    500: '#5f6812',
    950: '#000000',
  },
}
SCSS
$custom: #5f6812;
$custom-light: #8f9359;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6812",
  "rgb": {
    "r": 95,
    "g": 104,
    "b": 18
  },
  "hsl": {
    "h": 66.279,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.49327,
    "c": 0.1048,
    "h": 115.7
  },
  "luminance": 0.12377
}

Semantic roles & 50–950 ramp

primary
#5F6812
secondary
#4136A0
accent
#3BED4D
background
#F9F9F5
surface
#F1F1E9
border
#CBCBC5
text
#0D0D04
muted
#7E7E79

Preview Lab

Preview with #5F6812

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

Preview Lab → · Contrast checker → · Palette generator →

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