#5F6212#5F6212

#5F6212 is a mid, moderate yellow. Relative luminance 0.112; OKLCH L 47.8% C 0.098 H 111.8°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#5F6212
RGBrgb(95, 98, 18)
HSLhsl(62, 69%, 23%)
HSVhsv(62, 82%, 38%)
CMYKcmyk(3.1%, 0%, 81.6%, 61.6%)
CIE-LABlab(39.94, -11.56, 41.54)
CIE-LCHlch(39.94, 43.12, 105.55°)
OKLaboklab(47.82% -0.0363 0.0908)
OKLCHoklch(47.82% 0.098 111.8)
XYZxyz(9.1965, 11.2122, 2.2519)
Luminance0.1121 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6212 #151262
analogous
#623D12 #5F6212 #376212
triadic
#5F6212 #125F62 #62125F
tetradic
#5F6212 #12623D #151262 #621237
square
#5F6212 #12623D #151262 #621237
split-complementary
#5F6212 #123762 #3D1262
monochromatic
#191A05 #2D2E09 #5F6212 #91961B #C3C925

Accessibility & contrast

On white

6.48
#5F6212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5F6212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F6212
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6212#FFFFFF#000000##FFFFFF
##5F62121.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5D00
Deuteranopia (green-blind)
#6B5F19
Tritanopia (blue-blind)
#665B53
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5f6212;
/* rgb */ color: rgb(95, 98, 18);
/* oklch */ color: oklch(47.8% 0.098 111.8);
Tailwind
colors: {
  custom: {
    50: '#8f8e58',
    500: '#5f6212',
    950: '#000000',
  },
}
SCSS
$custom: #5f6212;
$custom-light: #8f8e58;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6212",
  "rgb": {
    "r": 95,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 62.25,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.47824,
    "c": 0.09778,
    "h": 111.8
  },
  "luminance": 0.11212
}

Semantic roles & 50–950 ramp

primary
#5F6212
secondary
#3A369A
accent
#3CEC43
background
#F9F8F5
surface
#F1F0E9
border
#CBCBC5
text
#0D0C04
muted
#7E7D79

Preview Lab

Preview with #5F6212

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

Preview Lab → · Contrast checker → · Palette generator →

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