#8B951F#8B951F

#8B951F is a light, vivid yellow. Relative luminance 0.271; OKLCH L 64.1% C 0.134 H 114.6°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#8B951F
RGBrgb(139, 149, 31)
HSLhsl(65, 66%, 35%)
HSVhsv(65, 79%, 58%)
CMYKcmyk(6.7%, 0%, 79.2%, 41.6%)
CIE-LABlab(59.05, -18.17, 55.99)
CIE-LCHlch(59.05, 58.87, 107.98°)
OKLaboklab(64.08% -0.0559 0.1223)
OKLCHoklch(64.08% 0.134 114.6)
XYZxyz(21.6429, 27.0832, 5.3835)
Luminance0.2708 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B951F #291F95
analogous
#95641F #8B951F #50951F
triadic
#8B951F #1F8B95 #951F8B
tetradic
#8B951F #1F9564 #291F95 #951F50
square
#8B951F #1F9564 #291F95 #951F50
split-complementary
#8B951F #1F5095 #641F95
monochromatic
#2C300A #5C6214 #8B951F #BAC82A #D0DB53

Accessibility & contrast

On white

3.27
#8B951F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#8B951F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B951F
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B951F#FFFFFF#000000##000000
##8B951F1.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08D00
Deuteranopia (green-blind)
#A08F2A
Tritanopia (blue-blind)
#958C7F
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #8b951f;
/* rgb */ color: rgb(139, 149, 31);
/* oklch */ color: oklch(64.1% 0.134 114.6);
Tailwind
colors: {
  custom: {
    50: '#b0b466',
    500: '#8b951f',
    950: '#000000',
  },
}
SCSS
$custom: #8b951f;
$custom-light: #b0b466;
$custom-dark: #000000;
JSON
{
  "hex": "#8b951f",
  "rgb": {
    "r": 139,
    "g": 149,
    "b": 31
  },
  "hsl": {
    "h": 65.085,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.64078,
    "c": 0.13449,
    "h": 114.6
  },
  "luminance": 0.27083
}

Semantic roles & 50–950 ramp

primary
#8B951F
secondary
#5B51BF
accent
#3FE94E
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8B951F

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

Preview Lab → · Contrast checker → · Palette generator →

#8B951F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva