#5F6916#5F6916

#5F6916 is a mid, moderate yellow. Relative luminance 0.126; OKLCH L 49.6% C 0.104 H 116.4°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#5F6916
RGBrgb(95, 105, 22)
HSLhsl(67, 65%, 25%)
HSVhsv(67, 79%, 41%)
CMYKcmyk(9.5%, 0%, 79%, 58.8%)
CIE-LABlab(42.15, -15.25, 42.16)
CIE-LCHlch(42.15, 44.84, 109.88°)
OKLaboklab(49.6% -0.0461 0.0929)
OKLCHoklch(49.6% 0.104 116.4)
XYZxyz(9.9160, 12.5941, 2.6674)
Luminance0.1259 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6916 #201669
analogous
#694A16 #5F6916 #366916
triadic
#5F6916 #165F69 #69165F
tetradic
#5F6916 #16694A #201669 #691636
square
#5F6916 #16694A #201669 #691636
split-complementary
#5F6916 #163669 #4A1669
monochromatic
#171905 #31360B #5F6916 #8D9C21 #BBCE2B

Accessibility & contrast

On white

5.97
#5F6916 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5F6916 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F6916
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6916#FFFFFF#000000##FFFFFF
##5F69161.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716304
Deuteranopia (green-blind)
#70641D
Tritanopia (blue-blind)
#656359
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5f6916;
/* rgb */ color: rgb(95, 105, 22);
/* oklch */ color: oklch(49.6% 0.104 116.4);
Tailwind
colors: {
  custom: {
    50: '#8f935b',
    500: '#5f6916',
    950: '#000000',
  },
}
SCSS
$custom: #5f6916;
$custom-light: #8f935b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6916",
  "rgb": {
    "r": 95,
    "g": 105,
    "b": 22
  },
  "hsl": {
    "h": 67.229,
    "s": 65.354,
    "l": 24.902
  },
  "oklch": {
    "l": 0.49603,
    "c": 0.10372,
    "h": 116.4
  },
  "luminance": 0.12594
}

Semantic roles & 50–950 ramp

primary
#5F6916
secondary
#473B9F
accent
#3FE854
background
#F9F9F5
surface
#F1F1E9
border
#CBCBC5
text
#0D0D04
muted
#7E7E79

Preview Lab

Preview with #5F6916

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

Preview Lab → · Contrast checker → · Palette generator →

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