#5F6818#5F6818

#5F6818 is a mid, moderate yellow. Relative luminance 0.124; OKLCH L 49.4% C 0.101 H 115.9°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#5F6818
RGBrgb(95, 104, 24)
HSLhsl(67, 63%, 25%)
HSVhsv(67, 77%, 41%)
CMYKcmyk(8.7%, 0%, 76.9%, 59.2%)
CIE-LABlab(41.84, -14.59, 41.13)
CIE-LCHlch(41.84, 43.64, 109.54°)
OKLaboklab(49.37% -0.0441 0.0911)
OKLCHoklch(49.37% 0.101 115.9)
XYZxyz(9.8348, 12.3996, 2.7393)
Luminance0.1240 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6818 #211868
analogous
#684918 #5F6818 #376818
triadic
#5F6818 #185F68 #68185F
tetradic
#5F6818 #186849 #211868 #681837
square
#5F6818 #186849 #211868 #681837
split-complementary
#5F6818 #183768 #491868
monochromatic
#171906 #32360D #5F6818 #8C9A23 #BACB2F

Accessibility & contrast

On white

6.03
#5F6818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5F6818
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6818#FFFFFF#000000##FFFFFF
##5F68181.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706208
Deuteranopia (green-blind)
#6F631F
Tritanopia (blue-blind)
#656259
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5f6818;
/* rgb */ color: rgb(95, 104, 24);
/* oklch */ color: oklch(49.4% 0.101 115.9);
Tailwind
colors: {
  custom: {
    50: '#8f935b',
    500: '#5f6818',
    950: '#000000',
  },
}
SCSS
$custom: #5f6818;
$custom-light: #8f935b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6818",
  "rgb": {
    "r": 95,
    "g": 104,
    "b": 24
  },
  "hsl": {
    "h": 66.75,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.49366,
    "c": 0.10123,
    "h": 115.9
  },
  "luminance": 0.12399
}

Semantic roles & 50–950 ramp

primary
#5F6818
secondary
#493E9E
accent
#42E655
background
#F9F9F5
surface
#F1F1E9
border
#CBCBC5
text
#0D0D04
muted
#7E7E79

Preview Lab

Preview with #5F6818

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

Preview Lab → · Contrast checker → · Palette generator →

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