#8A951F#8A951F

#8A951F is a light, vivid yellow. Relative luminance 0.270; OKLCH L 64.0% C 0.135 H 115.1°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#8A951F
RGBrgb(138, 149, 31)
HSLhsl(66, 66%, 35%)
HSVhsv(66, 79%, 58%)
CMYKcmyk(7.4%, 0%, 79.2%, 41.6%)
CIE-LABlab(58.97, -18.61, 55.89)
CIE-LCHlch(58.97, 58.91, 108.42°)
OKLaboklab(63.99% -0.0571 0.1221)
OKLCHoklch(63.99% 0.135 115.1)
XYZxyz(21.4766, 26.9975, 5.3757)
Luminance0.2700 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A951F #2A1F95
analogous
#95651F #8A951F #4F951F
triadic
#8A951F #1F8A95 #951F8A
tetradic
#8A951F #1F9565 #2A1F95 #951F4F
square
#8A951F #1F9565 #2A1F95 #951F4F
split-complementary
#8A951F #1F4F95 #651F95
monochromatic
#2C300A #5B6214 #8A951F #B9C82A #CFDB53

Accessibility & contrast

On white

3.28
#8A951F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#8A951F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A951F
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A951F#FFFFFF#000000##000000
##8A951F1.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08D00
Deuteranopia (green-blind)
#9F8F2A
Tritanopia (blue-blind)
#938C7F
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #8a951f;
/* rgb */ color: rgb(138, 149, 31);
/* oklch */ color: oklch(64.0% 0.135 115.1);
Tailwind
colors: {
  custom: {
    50: '#b0b466',
    500: '#8a951f',
    950: '#000000',
  },
}
SCSS
$custom: #8a951f;
$custom-light: #b0b466;
$custom-dark: #000000;
JSON
{
  "hex": "#8a951f",
  "rgb": {
    "r": 138,
    "g": 149,
    "b": 31
  },
  "hsl": {
    "h": 65.593,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.63994,
    "c": 0.13482,
    "h": 115.1
  },
  "luminance": 0.26997
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A951F

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

Preview Lab → · Contrast checker → · Palette generator →

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