#5F6915#5F6915

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

Color values

HEX#5F6915
RGBrgb(95, 105, 21)
HSLhsl(67, 67%, 25%)
HSVhsv(67, 80%, 41%)
CMYKcmyk(9.5%, 0%, 80%, 58.8%)
CIE-LABlab(42.14, -15.30, 42.52)
CIE-LCHlch(42.14, 45.19, 109.79°)
OKLaboklab(49.6% -0.0464 0.0935)
OKLCHoklch(49.6% 0.104 116.4)
XYZxyz(9.9065, 12.5903, 2.6176)
Luminance0.1259 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6915 #1F1569
analogous
#694915 #5F6915 #356915
triadic
#5F6915 #155F69 #69155F
tetradic
#5F6915 #156949 #1F1569 #691535
square
#5F6915 #156949 #1F1569 #691535
split-complementary
#5F6915 #153569 #491569
monochromatic
#171A05 #31360B #5F6915 #8D9C1F #BBCF29

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F6915#FFFFFF#000000##FFFFFF
##5F69151.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)
#716302
Deuteranopia (green-blind)
#70641D
Tritanopia (blue-blind)
#656359
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5f6915;
/* rgb */ color: rgb(95, 105, 21);
/* oklch */ color: oklch(49.6% 0.104 116.4);
Tailwind
colors: {
  custom: {
    50: '#8f935a',
    500: '#5f6915',
    950: '#000000',
  },
}
SCSS
$custom: #5f6915;
$custom-light: #8f935a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6915",
  "rgb": {
    "r": 95,
    "g": 105,
    "b": 21
  },
  "hsl": {
    "h": 67.143,
    "s": 66.667,
    "l": 24.706
  },
  "oklch": {
    "l": 0.49597,
    "c": 0.10433,
    "h": 116.4
  },
  "luminance": 0.1259
}

Semantic roles & 50–950 ramp

primary
#5F6915
secondary
#463AA0
accent
#3EEA53
background
#F9F9F5
surface
#F1F1E9
border
#CBCBC5
text
#0D0D04
muted
#7E7E79

Preview Lab

Preview with #5F6915

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

Preview Lab → · Contrast checker → · Palette generator →

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