#5F6C12#5F6C12

#5F6C12 is a mid, moderate yellow. Relative luminance 0.132; OKLCH L 50.3% C 0.110 H 118.0°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#5F6C12
RGBrgb(95, 108, 18)
HSLhsl(69, 71%, 25%)
HSVhsv(69, 83%, 42%)
CMYKcmyk(12%, 0%, 83.3%, 57.6%)
CIE-LABlab(43.07, -17.06, 44.37)
CIE-LCHlch(43.07, 47.53, 111.03°)
OKLaboklab(50.34% -0.0515 0.0968)
OKLCHoklch(50.34% 0.11 118)
XYZxyz(10.1913, 13.2018, 2.5835)
Luminance0.1320 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6C12 #1F126C
analogous
#6C4C12 #5F6C12 #326C12
triadic
#5F6C12 #125F6C #6C125F
tetradic
#5F6C12 #126C4C #1F126C #6C1232
square
#5F6C12 #126C4C #1F126C #6C1232
split-complementary
#5F6C12 #12326C #4C126C
monochromatic
#171A04 #313809 #5F6C12 #8DA01B #BBD523

Accessibility & contrast

On white

5.77
#5F6C12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#5F6C12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F6C12
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6C12#FFFFFF#000000##FFFFFF
##5F6C121.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746600
Deuteranopia (green-blind)
#72661B
Tritanopia (blue-blind)
#65665C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5f6c12;
/* rgb */ color: rgb(95, 108, 18);
/* oklch */ color: oklch(50.3% 0.110 118.0);
Tailwind
colors: {
  custom: {
    50: '#8f9659',
    500: '#5f6c12',
    950: '#000000',
  },
}
SCSS
$custom: #5f6c12;
$custom-light: #8f9659;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6c12",
  "rgb": {
    "r": 95,
    "g": 108,
    "b": 18
  },
  "hsl": {
    "h": 68.667,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.50337,
    "c": 0.10964,
    "h": 118
  },
  "luminance": 0.13202
}

Semantic roles & 50–950 ramp

primary
#5F6C12
secondary
#4636A3
accent
#3AEE54
background
#F9F9F5
surface
#F1F1E9
border
#CBCBC5
text
#0D0D04
muted
#7E7E79

Preview Lab

Preview with #5F6C12

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

Preview Lab → · Contrast checker → · Palette generator →

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