#97981F#97981F

#97981F is a light, vivid yellow. Relative luminance 0.291; OKLCH L 65.8% C 0.134 H 110.1°. Best body text is #000000 at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#97981F
RGBrgb(151, 152, 31)
HSLhsl(60, 66%, 36%)
HSVhsv(60, 80%, 60%)
CMYKcmyk(0.7%, 0%, 79.6%, 40.4%)
CIE-LABlab(60.90, -14.39, 58.02)
CIE-LCHlch(60.90, 59.78, 103.93°)
OKLaboklab(65.8% -0.0461 0.1262)
OKLCHoklch(65.8% 0.134 110.1)
XYZxyz(24.2390, 29.1354, 5.6429)
Luminance0.2913 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97981F #201F98
analogous
#985C1F #97981F #5A981F
triadic
#97981F #1F9798 #981F97
tetradic
#97981F #1F985C #201F98 #981F5A
square
#97981F #1F985C #201F98 #981F5A
split-complementary
#97981F #1F5A98 #5C1F98
monochromatic
#32320A #646515 #97981F #C9CB29 #DBDC55

Accessibility & contrast

On white

3.08
#97981F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.83
#97981F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #97981F
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97981F#FFFFFF#000000##000000
##97981F1.003.086.836.83
#FFFFFF3.081.0021.0021.00
#0000006.8321.001.001.00
##0000006.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59100
Deuteranopia (green-blind)
#A6952A
Tritanopia (blue-blind)
#A28E82
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #97981f;
/* rgb */ color: rgb(151, 152, 31);
/* oklch */ color: oklch(65.8% 0.134 110.1);
Tailwind
colors: {
  custom: {
    50: '#b9b666',
    500: '#97981f',
    950: '#000000',
  },
}
SCSS
$custom: #97981f;
$custom-light: #b9b666;
$custom-dark: #000000;
JSON
{
  "hex": "#97981f",
  "rgb": {
    "r": 151,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 60.496,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.65801,
    "c": 0.13432,
    "h": 110.1
  },
  "luminance": 0.29135
}

Semantic roles & 50–950 ramp

primary
#97981F
secondary
#5453C0
accent
#3FE940
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121106
muted
#81807A

Preview Lab

Preview with #97981F

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

Preview Lab → · Contrast checker → · Palette generator →

#97981F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva