#5F6A12#5F6A12

#5F6A12 is a mid, moderate yellow. Relative luminance 0.128; OKLCH L 49.8% C 0.107 H 116.9°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#5F6A12
RGBrgb(95, 106, 18)
HSLhsl(68, 71%, 24%)
HSVhsv(68, 83%, 42%)
CMYKcmyk(10.4%, 0%, 83%, 58.4%)
CIE-LABlab(42.44, -15.98, 43.80)
CIE-LCHlch(42.44, 46.63, 110.04°)
OKLaboklab(49.83% -0.0485 0.0956)
OKLCHoklch(49.83% 0.107 116.9)
XYZxyz(9.9828, 12.7848, 2.5140)
Luminance0.1278 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6A12 #1D126A
analogous
#6A4912 #5F6A12 #336A12
triadic
#5F6A12 #125F6A #6A125F
tetradic
#5F6A12 #126A49 #1D126A #6A1233
square
#5F6A12 #126A49 #1D126A #6A1233
split-complementary
#5F6A12 #12336A #49126A
monochromatic
#171A04 #303609 #5F6A12 #8E9E1B #BDD324

Accessibility & contrast

On white

5.90
#5F6A12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#5F6A12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F6A12
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6A12#FFFFFF#000000##FFFFFF
##5F6A121.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726400
Deuteranopia (green-blind)
#71651B
Tritanopia (blue-blind)
#66635A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f6a12;
/* rgb */ color: rgb(95, 106, 18);
/* oklch */ color: oklch(49.8% 0.107 116.9);
Tailwind
colors: {
  custom: {
    50: '#8f9459',
    500: '#5f6a12',
    950: '#000000',
  },
}
SCSS
$custom: #5f6a12;
$custom-light: #8f9459;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6a12",
  "rgb": {
    "r": 95,
    "g": 106,
    "b": 18
  },
  "hsl": {
    "h": 67.5,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.49831,
    "c": 0.10721,
    "h": 116.9
  },
  "luminance": 0.12785
}

Semantic roles & 50–950 ramp

primary
#5F6A12
secondary
#4436A2
accent
#3AEE51
background
#F9F9F5
surface
#F1F1E9
border
#CBCBC5
text
#0D0D04
muted
#7E7E79

Preview Lab

Preview with #5F6A12

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

Preview Lab → · Contrast checker → · Palette generator →

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