#87941B#87941B

#87941B is a light, vivid yellow. Relative luminance 0.264; OKLCH L 63.5% C 0.137 H 116.0°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#87941B
RGBrgb(135, 148, 27)
HSLhsl(66, 69%, 34%)
HSVhsv(66, 82%, 58%)
CMYKcmyk(8.8%, 0%, 81.8%, 42%)
CIE-LABlab(58.42, -19.58, 56.51)
CIE-LCHlch(58.42, 59.81, 109.11°)
OKLaboklab(63.49% -0.0599 0.1228)
OKLCHoklch(63.49% 0.137 116)
XYZxyz(20.7800, 26.4102, 5.0397)
Luminance0.2641 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87941B #281B94
analogous
#94651B #87941B #4B941B
triadic
#87941B #1B8794 #941B87
tetradic
#87941B #1B9465 #281B94 #941B4B
square
#87941B #1B9465 #281B94 #941B4B
split-complementary
#87941B #1B4B94 #651B94
monochromatic
#292C08 #586012 #87941B #B6C824 #CEDE4B

Accessibility & contrast

On white

3.34
#87941B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#87941B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #87941B
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87941B#FFFFFF#000000##000000
##87941B1.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8C00
Deuteranopia (green-blind)
#9E8D27
Tritanopia (blue-blind)
#908B7E
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #87941b;
/* rgb */ color: rgb(135, 148, 27);
/* oklch */ color: oklch(63.5% 0.137 116.0);
Tailwind
colors: {
  custom: {
    50: '#aeb364',
    500: '#87941b',
    950: '#000000',
  },
}
SCSS
$custom: #87941b;
$custom-light: #aeb364;
$custom-dark: #000000;
JSON
{
  "hex": "#87941b",
  "rgb": {
    "r": 135,
    "g": 148,
    "b": 27
  },
  "hsl": {
    "h": 66.446,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.6349,
    "c": 0.13667,
    "h": 116
  },
  "luminance": 0.2641
}

Semantic roles & 50–950 ramp

primary
#87941B
secondary
#574BC0
accent
#3CEC4F
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #87941B

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

Preview Lab → · Contrast checker → · Palette generator →

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