#5F6D12#5F6D12

#5F6D12 is a mid, moderate yellow. Relative luminance 0.134; OKLCH L 50.6% C 0.111 H 118.5°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#5F6D12
RGBrgb(95, 109, 18)
HSLhsl(69, 72%, 25%)
HSVhsv(69, 83%, 43%)
CMYKcmyk(12.8%, 0%, 83.5%, 57.3%)
CIE-LABlab(43.38, -17.59, 44.65)
CIE-LCHlch(43.38, 47.99, 111.50°)
OKLaboklab(50.59% -0.0529 0.0974)
OKLCHoklch(50.59% 0.111 118.5)
XYZxyz(10.2974, 13.4139, 2.6188)
Luminance0.1341 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6D12 #20126D
analogous
#6D4E12 #5F6D12 #316D12
triadic
#5F6D12 #125F6D #6D125F
tetradic
#5F6D12 #126D4E #20126D #6D1231
square
#5F6D12 #126D4E #20126D #6D1231
split-complementary
#5F6D12 #12316D #4E126D
monochromatic
#171A04 #313809 #5F6D12 #8DA21B #BBD623

Accessibility & contrast

On white

5.70
#5F6D12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#5F6D12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F6D12
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6D12#FFFFFF#000000##FFFFFF
##5F6D121.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756600
Deuteranopia (green-blind)
#73671B
Tritanopia (blue-blind)
#65675C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5f6d12;
/* rgb */ color: rgb(95, 109, 18);
/* oklch */ color: oklch(50.6% 0.111 118.5);
Tailwind
colors: {
  custom: {
    50: '#8f9659',
    500: '#5f6d12',
    950: '#000000',
  },
}
SCSS
$custom: #5f6d12;
$custom-light: #8f9659;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6d12",
  "rgb": {
    "r": 95,
    "g": 109,
    "b": 18
  },
  "hsl": {
    "h": 69.231,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.5059,
    "c": 0.11086,
    "h": 118.5
  },
  "luminance": 0.13414
}

Semantic roles & 50–950 ramp

primary
#5F6D12
secondary
#4737A4
accent
#39EE55
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0D04
muted
#7E7E79

Preview Lab

Preview with #5F6D12

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

Preview Lab → · Contrast checker → · Palette generator →

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