#97B31C#97B31C

#97B31C is a light, vivid yellow-green. Relative luminance 0.389; OKLCH L 72.0% C 0.165 H 120.6°. Best body text is #000000 at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#97B31C
RGBrgb(151, 179, 28)
HSLhsl(71, 73%, 41%)
HSVhsv(71, 84%, 70%)
CMYKcmyk(15.6%, 0%, 84.4%, 29.8%)
CIE-LABlab(68.68, -28.04, 65.60)
CIE-LCHlch(68.68, 71.34, 113.14°)
OKLaboklab(72.05% -0.0839 0.1419)
OKLCHoklch(72.05% 0.165 120.6)
XYZxyz(29.0928, 38.9034, 7.0748)
Luminance0.3890 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97B31C #381CB3
analogous
#B3831C #97B31C #4BB31C
triadic
#97B31C #1C97B3 #B31C97
tetradic
#97B31C #1CB383 #381CB3 #B31C4B
square
#97B31C #1CB383 #381CB3 #B31C4B
split-complementary
#97B31C #1C4BB3 #831CB3
monochromatic
#3E490B #6A7E14 #97B31C #BEDE2E #CEE763

Accessibility & contrast

On white

2.39
#97B31C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.78
#97B31C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #97B31C
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97B31C#FFFFFF#000000##000000
##97B31C1.002.398.788.78
#FFFFFF2.391.0021.0021.00
#0000008.7821.001.001.00
##0000008.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA800
Deuteranopia (green-blind)
#BBA82E
Tritanopia (blue-blind)
#A0A999
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #97b31c;
/* rgb */ color: rgb(151, 179, 28);
/* oklch */ color: oklch(72.0% 0.165 120.6);
Tailwind
colors: {
  custom: {
    50: '#bac969',
    500: '#97b31c',
    950: '#000000',
  },
}
SCSS
$custom: #97b31c;
$custom-light: #bac969;
$custom-dark: #000000;
JSON
{
  "hex": "#97b31c",
  "rgb": {
    "r": 151,
    "g": 179,
    "b": 28
  },
  "hsl": {
    "h": 71.126,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.72048,
    "c": 0.16483,
    "h": 120.6
  },
  "luminance": 0.38903
}

Semantic roles & 50–950 ramp

primary
#97B31C
secondary
#735FCB
accent
#38F05A
background
#FBFCF6
surface
#F7F8EC
border
#D0D1C7
text
#121307
muted
#81827A

Preview Lab

Preview with #97B31C

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

Preview Lab → · Contrast checker → · Palette generator →

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