#5F6814#5F6814

#5F6814 is a mid, moderate yellow. Relative luminance 0.124; OKLCH L 49.3% C 0.104 H 115.8°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#5F6814
RGBrgb(95, 104, 20)
HSLhsl(66, 68%, 24%)
HSVhsv(66, 81%, 41%)
CMYKcmyk(8.7%, 0%, 80.8%, 59.2%)
CIE-LABlab(41.82, -14.80, 42.57)
CIE-LCHlch(41.82, 45.07, 109.17°)
OKLaboklab(49.34% -0.0451 0.0934)
OKLCHoklch(49.34% 0.104 115.8)
XYZxyz(9.7962, 12.3842, 2.5360)
Luminance0.1238 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6814 #1D1468
analogous
#684714 #5F6814 #356814
triadic
#5F6814 #145F68 #68145F
tetradic
#5F6814 #146847 #1D1468 #681435
square
#5F6814 #146847 #1D1468 #681435
split-complementary
#5F6814 #143568 #471468
monochromatic
#171A05 #30350A #5F6814 #8E9B1E #BDCF28

Accessibility & contrast

On white

6.04
#5F6814 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5F6814 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F6814
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6814#FFFFFF#000000##FFFFFF
##5F68141.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706201
Deuteranopia (green-blind)
#6F631C
Tritanopia (blue-blind)
#666258
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5f6814;
/* rgb */ color: rgb(95, 104, 20);
/* oklch */ color: oklch(49.3% 0.104 115.8);
Tailwind
colors: {
  custom: {
    50: '#8f935a',
    500: '#5f6814',
    950: '#000000',
  },
}
SCSS
$custom: #5f6814;
$custom-light: #8f935a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6814",
  "rgb": {
    "r": 95,
    "g": 104,
    "b": 20
  },
  "hsl": {
    "h": 66.429,
    "s": 67.742,
    "l": 24.314
  },
  "oklch": {
    "l": 0.49339,
    "c": 0.1037,
    "h": 115.8
  },
  "luminance": 0.12384
}

Semantic roles & 50–950 ramp

primary
#5F6814
secondary
#44399F
accent
#3DEB50
background
#F9F9F5
surface
#F1F1E9
border
#CBCBC5
text
#0D0D04
muted
#7E7E79

Preview Lab

Preview with #5F6814

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

Preview Lab → · Contrast checker → · Palette generator →

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