#87931B#87931B

#87931B is a light, vivid yellow. Relative luminance 0.261; OKLCH L 63.3% C 0.136 H 115.6°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#87931B
RGBrgb(135, 147, 27)
HSLhsl(66, 69%, 34%)
HSVhsv(66, 82%, 58%)
CMYKcmyk(8.2%, 0%, 81.6%, 42.4%)
CIE-LABlab(58.13, -19.07, 56.25)
CIE-LCHlch(58.13, 59.39, 108.73°)
OKLaboklab(63.25% -0.0585 0.1223)
OKLCHoklch(63.25% 0.136 115.6)
XYZxyz(20.6238, 26.0978, 4.9876)
Luminance0.2610 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87931B #271B93
analogous
#93631B #87931B #4B931B
triadic
#87931B #1B8793 #931B87
tetradic
#87931B #1B9363 #271B93 #931B4B
square
#87931B #1B9363 #271B93 #931B4B
split-complementary
#87931B #1B4B93 #631B93
monochromatic
#282C08 #585F12 #87931B #B6C724 #CFDE4B

Accessibility & contrast

On white

3.38
#87931B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#87931B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #87931B
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87931B#FFFFFF#000000##000000
##87931B1.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8B00
Deuteranopia (green-blind)
#9D8D27
Tritanopia (blue-blind)
#908A7D
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #87931b;
/* rgb */ color: rgb(135, 147, 27);
/* oklch */ color: oklch(63.3% 0.136 115.6);
Tailwind
colors: {
  custom: {
    50: '#adb264',
    500: '#87931b',
    950: '#000000',
  },
}
SCSS
$custom: #87931b;
$custom-light: #adb264;
$custom-dark: #000000;
JSON
{
  "hex": "#87931b",
  "rgb": {
    "r": 135,
    "g": 147,
    "b": 27
  },
  "hsl": {
    "h": 66,
    "s": 68.966,
    "l": 34.118
  },
  "oklch": {
    "l": 0.63253,
    "c": 0.13556,
    "h": 115.6
  },
  "luminance": 0.26097
}

Semantic roles & 50–950 ramp

primary
#87931B
secondary
#564AC0
accent
#3CEC4E
background
#FBFAF6
surface
#F6F5EB
border
#D0CFC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #87931B

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

Preview Lab → · Contrast checker → · Palette generator →

#87931B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva