#5F6918#5F6918

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

Color values

HEX#5F6918
RGBrgb(95, 105, 24)
HSLhsl(67, 63%, 25%)
HSVhsv(67, 77%, 41%)
CMYKcmyk(9.5%, 0%, 77.1%, 58.8%)
CIE-LABlab(42.16, -15.14, 41.43)
CIE-LCHlch(42.16, 44.11, 110.08°)
OKLaboklab(49.62% -0.0457 0.0917)
OKLCHoklch(49.62% 0.102 116.5)
XYZxyz(9.9360, 12.6021, 2.7730)
Luminance0.1260 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6918 #221869
analogous
#694A18 #5F6918 #376918
triadic
#5F6918 #185F69 #69185F
tetradic
#5F6918 #18694A #221869 #691837
square
#5F6918 #18694A #221869 #691837
split-complementary
#5F6918 #183769 #4A1869
monochromatic
#171906 #32370D #5F6918 #8C9B23 #B9CD2F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F6918#FFFFFF#000000##FFFFFF
##5F69181.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)
#716308
Deuteranopia (green-blind)
#70641F
Tritanopia (blue-blind)
#656359
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5f6918;
/* rgb */ color: rgb(95, 105, 24);
/* oklch */ color: oklch(49.6% 0.102 116.5);
Tailwind
colors: {
  custom: {
    50: '#8f935c',
    500: '#5f6918',
    950: '#000000',
  },
}
SCSS
$custom: #5f6918;
$custom-light: #8f935c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6918",
  "rgb": {
    "r": 95,
    "g": 105,
    "b": 24
  },
  "hsl": {
    "h": 67.407,
    "s": 62.791,
    "l": 25.294
  },
  "oklch": {
    "l": 0.49617,
    "c": 0.10246,
    "h": 116.5
  },
  "luminance": 0.12602
}

Semantic roles & 50–950 ramp

primary
#5F6918
secondary
#4A3E9F
accent
#42E656
background
#F9F9F5
surface
#F1F1E9
border
#CBCBC5
text
#0D0D04
muted
#7E7E79

Preview Lab

Preview with #5F6918

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

Preview Lab → · Contrast checker → · Palette generator →

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