#988F1F#988F1F

#988F1F is a light, vivid yellow. Relative luminance 0.264; OKLCH L 63.9% C 0.125 H 104.6°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#988F1F
RGBrgb(152, 143, 31)
HSLhsl(56, 66%, 36%)
HSVhsv(56, 80%, 60%)
CMYKcmyk(0%, 5.9%, 79.6%, 40.4%)
CIE-LABlab(58.43, -9.17, 55.85)
CIE-LCHlch(58.43, 56.60, 99.32°)
OKLaboklab(63.85% -0.0316 0.1215)
OKLCHoklch(63.85% 0.125 104.6)
XYZxyz(23.0197, 26.4202, 5.1831)
Luminance0.2642 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#988F1F #1F2898
analogous
#98521F #988F1F #64981F
triadic
#988F1F #1F988F #8F1F98
tetradic
#988F1F #1F9852 #1F2898 #981F64
square
#988F1F #1F9852 #1F2898 #981F64
split-complementary
#988F1F #1F6498 #521F98
monochromatic
#322F0A #655F15 #988F1F #CBBF29 #DCD255

Accessibility & contrast

On white

3.34
#988F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#988F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #988F1F
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##988F1F#FFFFFF#000000##000000
##988F1F1.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)
#9C8A00
Deuteranopia (green-blind)
#9F8F28
Tritanopia (blue-blind)
#A4857A
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #988f1f;
/* rgb */ color: rgb(152, 143, 31);
/* oklch */ color: oklch(63.9% 0.125 104.6);
Tailwind
colors: {
  custom: {
    50: '#baaf65',
    500: '#988f1f',
    950: '#000000',
  },
}
SCSS
$custom: #988f1f;
$custom-light: #baaf65;
$custom-dark: #000000;
JSON
{
  "hex": "#988f1f",
  "rgb": {
    "r": 152,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 55.537,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.63854,
    "c": 0.12549,
    "h": 104.6
  },
  "luminance": 0.26419
}

Semantic roles & 50–950 ramp

primary
#988F1F
secondary
#535BC0
accent
#4BE93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #988F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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