#97AB31#97AB31

#97AB31 is a light, vivid yellow. Relative luminance 0.359; OKLCH L 70.3% C 0.145 H 118.4°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#97AB31
RGBrgb(151, 171, 49)
HSLhsl(70, 55%, 43%)
HSVhsv(70, 71%, 67%)
CMYKcmyk(11.7%, 0%, 71.3%, 32.9%)
CIE-LABlab(66.46, -23.23, 57.14)
CIE-LCHlch(66.46, 61.68, 112.13°)
OKLaboklab(70.29% -0.069 0.1275)
OKLCHoklch(70.29% 0.145 118.4)
XYZxyz(27.8804, 35.9271, 8.3710)
Luminance0.3593 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97AB31 #4531AB
analogous
#AB8231 #97AB31 #5AAB31
triadic
#97AB31 #3197AB #AB3197
tetradic
#97AB31 #31AB82 #4531AB #AB315A
square
#97AB31 #31AB82 #4531AB #AB315A
split-complementary
#97AB31 #315AAB #8231AB
monochromatic
#434C16 #6D7B23 #97AB31 #B7CC4D #CADA7D

Accessibility & contrast

On white

2.57
#97AB31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.19
#97AB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #97AB31
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97AB31#FFFFFF#000000##000000
##97AB311.002.578.198.19
#FFFFFF2.571.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A11C
Deuteranopia (green-blind)
#B4A23B
Tritanopia (blue-blind)
#A0A293
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #97ab31;
/* rgb */ color: rgb(151, 171, 49);
/* oklch */ color: oklch(70.3% 0.145 118.4);
Tailwind
colors: {
  custom: {
    50: '#b9c471',
    500: '#97ab31',
    950: '#000000',
  },
}
SCSS
$custom: #97ab31;
$custom-light: #b9c471;
$custom-dark: #000000;
JSON
{
  "hex": "#97ab31",
  "rgb": {
    "r": 151,
    "g": 171,
    "b": 49
  },
  "hsl": {
    "h": 69.836,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.70294,
    "c": 0.14499,
    "h": 118.4
  },
  "luminance": 0.35927
}

Semantic roles & 50–950 ramp

primary
#97AB31
secondary
#8275C2
accent
#49DF62
background
#FBFCF7
surface
#F6F8ED
border
#D0D1C8
text
#121208
muted
#81817B

Preview Lab

Preview with #97AB31

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

Preview Lab → · Contrast checker → · Palette generator →

#97AB31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva