#97971B#97971B

#97971B is a light, vivid yellow. Relative luminance 0.288; OKLCH L 65.6% C 0.135 H 109.6°. Best body text is #000000 at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#97971B
RGBrgb(151, 151, 27)
HSLhsl(60, 70%, 35%)
HSVhsv(60, 82%, 59%)
CMYKcmyk(0%, 0%, 82.1%, 40.8%)
CIE-LABlab(60.60, -14.01, 58.91)
CIE-LCHlch(60.60, 60.55, 103.38°)
OKLaboklab(65.55% -0.0454 0.1273)
OKLCHoklch(65.55% 0.135 109.6)
XYZxyz(24.0279, 28.7924, 5.3285)
Luminance0.2879 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97971B #1B1B97
analogous
#97591B #97971B #59971B
triadic
#97971B #1B9797 #971B97
tetradic
#97971B #1B9759 #1B1B97 #971B59
square
#97971B #1B9759 #1B1B97 #971B59
split-complementary
#97971B #1B5997 #591B97
monochromatic
#2F2F08 #636312 #97971B #CBCB24 #DFDF4D

Accessibility & contrast

On white

3.11
#97971B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.76
#97971B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #97971B
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97971B#FFFFFF#000000##000000
##97971B1.003.116.766.76
#FFFFFF3.111.0021.0021.00
#0000006.7621.001.001.00
##0000006.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49000
Deuteranopia (green-blind)
#A59427
Tritanopia (blue-blind)
#A28D81
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #97971b;
/* rgb */ color: rgb(151, 151, 27);
/* oklch */ color: oklch(65.6% 0.135 109.6);
Tailwind
colors: {
  custom: {
    50: '#b9b565',
    500: '#97971b',
    950: '#000000',
  },
}
SCSS
$custom: #97971b;
$custom-light: #b9b565;
$custom-dark: #000000;
JSON
{
  "hex": "#97971b",
  "rgb": {
    "r": 151,
    "g": 151,
    "b": 27
  },
  "hsl": {
    "h": 60,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.65553,
    "c": 0.13515,
    "h": 109.6
  },
  "luminance": 0.28792
}

Semantic roles & 50–950 ramp

primary
#97971B
secondary
#4C4CC1
accent
#3BEC3B
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121106
muted
#81807A

Preview Lab

Preview with #97971B

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

Preview Lab → · Contrast checker → · Palette generator →

#97971B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva