#988D1F#988D1F

#988D1F is a light, vivid yellow. Relative luminance 0.258; OKLCH L 63.4% C 0.124 H 103.3°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#988D1F
RGBrgb(152, 141, 31)
HSLhsl(55, 66%, 36%)
HSVhsv(55, 80%, 60%)
CMYKcmyk(0%, 7.2%, 79.6%, 40.4%)
CIE-LABlab(57.87, -8.09, 55.34)
CIE-LCHlch(57.87, 55.93, 98.32°)
OKLaboklab(63.41% -0.0286 0.1204)
OKLCHoklch(63.41% 0.124 103.3)
XYZxyz(22.7221, 25.8251, 5.0839)
Luminance0.2582 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#988D1F #1F2A98
analogous
#98501F #988D1F #66981F
triadic
#988D1F #1F988D #8D1F98
tetradic
#988D1F #1F9850 #1F2A98 #981F66
square
#988D1F #1F9850 #1F2A98 #981F66
split-complementary
#988D1F #1F6698 #501F98
monochromatic
#322F0A #655E15 #988D1F #CBBC29 #DCD055

Accessibility & contrast

On white

3.41
#988D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#988D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #988D1F
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##988D1F#FFFFFF#000000##000000
##988D1F1.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8801
Deuteranopia (green-blind)
#9E8D28
Tritanopia (blue-blind)
#A48379
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #988d1f;
/* rgb */ color: rgb(152, 141, 31);
/* oklch */ color: oklch(63.4% 0.124 103.3);
Tailwind
colors: {
  custom: {
    50: '#baae65',
    500: '#988d1f',
    950: '#000000',
  },
}
SCSS
$custom: #988d1f;
$custom-light: #baae65;
$custom-dark: #000000;
JSON
{
  "hex": "#988d1f",
  "rgb": {
    "r": 152,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 54.545,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.63406,
    "c": 0.12371,
    "h": 103.3
  },
  "luminance": 0.25824
}

Semantic roles & 50–950 ramp

primary
#988D1F
secondary
#535DC0
accent
#4EE93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #988D1F

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

Preview Lab → · Contrast checker → · Palette generator →

#988D1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva