#988C1F#988C1F

#988C1F is a light, vivid yellow. Relative luminance 0.255; OKLCH L 63.2% C 0.123 H 102.7°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#988C1F
RGBrgb(152, 140, 31)
HSLhsl(54, 66%, 36%)
HSVhsv(54, 80%, 60%)
CMYKcmyk(0%, 7.9%, 79.6%, 40.4%)
CIE-LABlab(57.59, -7.55, 55.09)
CIE-LCHlch(57.59, 55.61, 97.80°)
OKLaboklab(63.18% -0.027 0.1198)
OKLCHoklch(63.18% 0.123 102.7)
XYZxyz(22.5754, 25.5315, 5.0350)
Luminance0.2553 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#988C1F #1F2B98
analogous
#98501F #988C1F #67981F
triadic
#988C1F #1F988C #8C1F98
tetradic
#988C1F #1F9850 #1F2B98 #981F67
square
#988C1F #1F9850 #1F2B98 #981F67
split-complementary
#988C1F #1F6798 #501F98
monochromatic
#322E0A #655D15 #988C1F #CBBB29 #DCCF55

Accessibility & contrast

On white

3.44
#988C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#988C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #988C1F
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##988C1F#FFFFFF#000000##000000
##988C1F1.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8702
Deuteranopia (green-blind)
#9D8D28
Tritanopia (blue-blind)
#A48278
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #988c1f;
/* rgb */ color: rgb(152, 140, 31);
/* oklch */ color: oklch(63.2% 0.123 102.7);
Tailwind
colors: {
  custom: {
    50: '#baad65',
    500: '#988c1f',
    950: '#000000',
  },
}
SCSS
$custom: #988c1f;
$custom-light: #baad65;
$custom-dark: #000000;
JSON
{
  "hex": "#988c1f",
  "rgb": {
    "r": 152,
    "g": 140,
    "b": 31
  },
  "hsl": {
    "h": 54.05,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.63182,
    "c": 0.12284,
    "h": 102.7
  },
  "luminance": 0.2553
}

Semantic roles & 50–950 ramp

primary
#988C1F
secondary
#535EC0
accent
#50E93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #988C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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