#8D951F#8D951F

#8D951F is a light, vivid yellow. Relative luminance 0.273; OKLCH L 64.2% C 0.134 H 113.6°. Best body text is #000000 at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#8D951F
RGBrgb(141, 149, 31)
HSLhsl(64, 66%, 35%)
HSVhsv(64, 79%, 58%)
CMYKcmyk(5.4%, 0%, 79.2%, 41.6%)
CIE-LABlab(59.21, -17.29, 56.20)
CIE-LCHlch(59.21, 58.80, 107.10°)
OKLaboklab(64.25% -0.0536 0.1227)
OKLCHoklch(64.25% 0.134 113.6)
XYZxyz(21.9800, 27.2570, 5.3993)
Luminance0.2726 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D951F #271F95
analogous
#95621F #8D951F #52951F
triadic
#8D951F #1F8D95 #951F8D
tetradic
#8D951F #1F9562 #271F95 #951F52
square
#8D951F #1F9562 #271F95 #951F52
split-complementary
#8D951F #1F5295 #621F95
monochromatic
#2D300A #5D6214 #8D951F #BDC82A #D2DB53

Accessibility & contrast

On white

3.26
#8D951F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.45
#8D951F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D951F
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D951F#FFFFFF#000000##000000
##8D951F1.003.266.456.45
#FFFFFF3.261.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A18D00
Deuteranopia (green-blind)
#A0902A
Tritanopia (blue-blind)
#978C7F
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #8d951f;
/* rgb */ color: rgb(141, 149, 31);
/* oklch */ color: oklch(64.2% 0.134 113.6);
Tailwind
colors: {
  custom: {
    50: '#b2b466',
    500: '#8d951f',
    950: '#000000',
  },
}
SCSS
$custom: #8d951f;
$custom-light: #b2b466;
$custom-dark: #000000;
JSON
{
  "hex": "#8d951f",
  "rgb": {
    "r": 141,
    "g": 149,
    "b": 31
  },
  "hsl": {
    "h": 64.068,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.64246,
    "c": 0.13385,
    "h": 113.6
  },
  "luminance": 0.27257
}

Semantic roles & 50–950 ramp

primary
#8D951F
secondary
#5951BF
accent
#3FE94B
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8D951F

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

Preview Lab → · Contrast checker → · Palette generator →

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