#5F6912#5F6912

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

Color values

HEX#5F6912
RGBrgb(95, 105, 18)
HSLhsl(67, 71%, 24%)
HSVhsv(67, 83%, 41%)
CMYKcmyk(9.5%, 0%, 82.9%, 58.8%)
CIE-LABlab(42.12, -15.43, 43.52)
CIE-LCHlch(42.12, 46.18, 109.53°)
OKLaboklab(49.58% -0.047 0.095)
OKLCHoklch(49.58% 0.106 116.3)
XYZxyz(9.8803, 12.5799, 2.4798)
Luminance0.1258 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6912 #1C1269
analogous
#694812 #5F6912 #346912
triadic
#5F6912 #125F69 #69125F
tetradic
#5F6912 #126948 #1C1269 #691234
square
#5F6912 #126948 #1C1269 #691234
split-complementary
#5F6912 #123469 #481269
monochromatic
#181A04 #303509 #5F6912 #8E9D1B #BED124

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F6912#FFFFFF#000000##FFFFFF
##5F69121.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)
#716300
Deuteranopia (green-blind)
#70641A
Tritanopia (blue-blind)
#666259
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5f6912;
/* rgb */ color: rgb(95, 105, 18);
/* oklch */ color: oklch(49.6% 0.106 116.3);
Tailwind
colors: {
  custom: {
    50: '#8f9359',
    500: '#5f6912',
    950: '#000000',
  },
}
SCSS
$custom: #5f6912;
$custom-light: #8f9359;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6912",
  "rgb": {
    "r": 95,
    "g": 105,
    "b": 18
  },
  "hsl": {
    "h": 66.897,
    "s": 70.732,
    "l": 24.118
  },
  "oklch": {
    "l": 0.49579,
    "c": 0.106,
    "h": 116.3
  },
  "luminance": 0.1258
}

Semantic roles & 50–950 ramp

primary
#5F6912
secondary
#4236A1
accent
#3AED4F
background
#F9F9F5
surface
#F1F1E9
border
#CBCBC5
text
#0D0D04
muted
#7E7E79

Preview Lab

Preview with #5F6912

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

Preview Lab → · Contrast checker → · Palette generator →

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