#5F6A0F#5F6A0F

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

Color values

HEX#5F6A0F
RGBrgb(95, 106, 15)
HSLhsl(67, 75%, 24%)
HSVhsv(67, 86%, 42%)
CMYKcmyk(10.4%, 0%, 85.8%, 58.4%)
CIE-LABlab(42.42, -16.10, 44.71)
CIE-LCHlch(42.42, 47.52, 109.80°)
OKLaboklab(49.82% -0.0491 0.097)
OKLCHoklch(49.82% 0.109 116.9)
XYZxyz(9.9598, 12.7756, 2.3931)
Luminance0.1278 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6A0F #1A0F6A
analogous
#6A470F #5F6A0F #316A0F
triadic
#5F6A0F #0F5F6A #6A0F5F
tetradic
#5F6A0F #0F6A47 #1A0F6A #6A0F31
square
#5F6A0F #0F6A47 #1A0F6A #6A0F31
split-complementary
#5F6A0F #0F316A #470F6A
monochromatic
#181B04 #2F3407 #5F6A0F #8FA017 #BFD51E

Accessibility & contrast

On white

5.91
#5F6A0F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5F6A0F
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6A0F#FFFFFF#000000##FFFFFF
##5F6A0F1.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f6a0f;
/* rgb */ color: rgb(95, 106, 15);
/* oklch */ color: oklch(49.8% 0.109 116.9);
Tailwind
colors: {
  custom: {
    50: '#909458',
    500: '#5f6a0f',
    950: '#000000',
  },
}
SCSS
$custom: #5f6a0f;
$custom-light: #909458;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6a0f",
  "rgb": {
    "r": 95,
    "g": 106,
    "b": 15
  },
  "hsl": {
    "h": 67.253,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.49815,
    "c": 0.10869,
    "h": 116.9
  },
  "luminance": 0.12775
}

Semantic roles & 50–950 ramp

primary
#5F6A0F
secondary
#4032A2
accent
#36F24D
background
#F9F9F5
surface
#F1F1E9
border
#CBCBC5
text
#0D0D04
muted
#7E7E79

Preview Lab

Preview with #5F6A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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