#8A951B#8A951B

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

Color values

HEX#8A951B
RGBrgb(138, 149, 27)
HSLhsl(65, 69%, 35%)
HSVhsv(65, 82%, 58%)
CMYKcmyk(7.4%, 0%, 81.9%, 41.6%)
CIE-LABlab(58.95, -18.77, 57.06)
CIE-LCHlch(58.95, 60.07, 108.21°)
OKLaboklab(63.97% -0.0579 0.1239)
OKLCHoklch(63.97% 0.137 115)
XYZxyz(21.4272, 26.9777, 5.1152)
Luminance0.2698 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A951B #261B95
analogous
#95631B #8A951B #4D951B
triadic
#8A951B #1B8A95 #951B8A
tetradic
#8A951B #1B9563 #261B95 #951B4D
square
#8A951B #1B9563 #261B95 #951B4D
split-complementary
#8A951B #1B4D95 #631B95
monochromatic
#2A2D08 #5A6112 #8A951B #BAC924 #D1DF4C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A951B#FFFFFF#000000##000000
##8A951B1.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)
#A08F27
Tritanopia (blue-blind)
#948C7F
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #8a951b;
/* rgb */ color: rgb(138, 149, 27);
/* oklch */ color: oklch(64.0% 0.137 115.0);
Tailwind
colors: {
  custom: {
    50: '#b0b464',
    500: '#8a951b',
    950: '#000000',
  },
}
SCSS
$custom: #8a951b;
$custom-light: #b0b464;
$custom-dark: #000000;
JSON
{
  "hex": "#8a951b",
  "rgb": {
    "r": 138,
    "g": 149,
    "b": 27
  },
  "hsl": {
    "h": 65.41,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.63974,
    "c": 0.13674,
    "h": 115
  },
  "luminance": 0.26977
}

Semantic roles & 50–950 ramp

primary
#8A951B
secondary
#564BC1
accent
#3CEC4C
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8A951B

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

Preview Lab → · Contrast checker → · Palette generator →

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