#97A71B#97A71B

#97A71B is a light, vivid yellow. Relative luminance 0.343; OKLCH L 69.2% C 0.152 H 116.6°. Best body text is #000000 at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#97A71B
RGBrgb(151, 167, 27)
HSLhsl(67, 72%, 38%)
HSVhsv(67, 84%, 65%)
CMYKcmyk(9.6%, 0%, 83.8%, 34.5%)
CIE-LABlab(65.20, -22.20, 62.86)
CIE-LCHlch(65.20, 66.67, 109.45°)
OKLaboklab(69.24% -0.0679 0.1358)
OKLCHoklch(69.24% 0.152 116.6)
XYZxyz(26.7798, 34.2963, 6.2458)
Luminance0.3430 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97A71B #2B1BA7
analogous
#A7711B #97A71B #51A71B
triadic
#97A71B #1B97A7 #A71B97
tetradic
#97A71B #1BA771 #2B1BA7 #A71B51
square
#97A71B #1BA771 #2B1BA7 #A71B51
split-complementary
#97A71B #1B51A7 #711BA7
monochromatic
#383E0A #677212 #97A71B #C7DC24 #D4E458

Accessibility & contrast

On white

2.67
#97A71B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.86
#97A71B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #97A71B
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97A71B#FFFFFF#000000##000000
##97A71B1.002.677.867.86
#FFFFFF2.671.0021.0021.00
#0000007.8621.001.001.00
##0000007.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E00
Deuteranopia (green-blind)
#B29F2A
Tritanopia (blue-blind)
#A19D8E
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #97a71b;
/* rgb */ color: rgb(151, 167, 27);
/* oklch */ color: oklch(69.2% 0.152 116.6);
Tailwind
colors: {
  custom: {
    50: '#b9c167',
    500: '#97a71b',
    950: '#000000',
  },
}
SCSS
$custom: #97a71b;
$custom-light: #b9c167;
$custom-dark: #000000;
JSON
{
  "hex": "#97a71b",
  "rgb": {
    "r": 151,
    "g": 167,
    "b": 27
  },
  "hsl": {
    "h": 66.857,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.6924,
    "c": 0.15189,
    "h": 116.6
  },
  "luminance": 0.34296
}

Semantic roles & 50–950 ramp

primary
#97A71B
secondary
#6356C8
accent
#39EF4E
background
#FBFBF6
surface
#F7F7EB
border
#D0D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #97A71B

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

Preview Lab → · Contrast checker → · Palette generator →

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