#987F26#987F26

#987F26 is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.4% C 0.109 H 92.7°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#987F26
RGBrgb(152, 127, 38)
HSLhsl(47, 60%, 37%)
HSVhsv(47, 75%, 60%)
CMYKcmyk(0%, 16.4%, 75%, 40.4%)
CIE-LABlab(54.02, -0.08, 49.21)
CIE-LCHlch(54.02, 49.21, 90.09°)
OKLaboklab(60.37% -0.0052 0.1087)
OKLCHoklch(60.37% 0.109 92.7)
XYZxyz(20.8893, 21.9953, 4.9786)
Luminance0.2199 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987F26 #263F98
analogous
#984626 #987F26 #789826
triadic
#987F26 #26987F #7F2698
tetradic
#987F26 #269846 #263F98 #982678
square
#987F26 #269846 #263F98 #982678
split-complementary
#987F26 #267898 #462698
monochromatic
#362D0E #67561A #987F26 #C9A832 #D7BD61

Accessibility & contrast

On white

3.89
#987F26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#987F26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987F26
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987F26#FFFFFF#000000##000000
##987F261.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D18
Deuteranopia (green-blind)
#93842B
Tritanopia (blue-blind)
#A5746D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #987f26;
/* rgb */ color: rgb(152, 127, 38);
/* oklch */ color: oklch(60.4% 0.109 92.7);
Tailwind
colors: {
  custom: {
    50: '#baa367',
    500: '#987f26',
    950: '#000000',
  },
}
SCSS
$custom: #987f26;
$custom-light: #baa367;
$custom-dark: #000000;
JSON
{
  "hex": "#987f26",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 38
  },
  "hsl": {
    "h": 46.842,
    "s": 60,
    "l": 37.255
  },
  "oklch": {
    "l": 0.60368,
    "c": 0.10884,
    "h": 92.7
  },
  "luminance": 0.21994
}

Semantic roles & 50–950 ramp

primary
#987F26
secondary
#5D72BD
accent
#67E345
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #987F26

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

Preview Lab → · Contrast checker → · Palette generator →

#987F26 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva