#97A831#97A831

#97A831 is a light, vivid yellow. Relative luminance 0.348; OKLCH L 69.6% C 0.141 H 117.3°. Best body text is #000000 at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#97A831
RGBrgb(151, 168, 49)
HSLhsl(69, 55%, 43%)
HSVhsv(69, 71%, 66%)
CMYKcmyk(10.1%, 0%, 70.8%, 34.1%)
CIE-LABlab(65.60, -21.74, 56.28)
CIE-LCHlch(65.60, 60.33, 111.12°)
OKLaboklab(69.6% -0.0649 0.1257)
OKLCHoklch(69.6% 0.141 117.3)
XYZxyz(27.3201, 34.8066, 8.1843)
Luminance0.3481 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97A831 #4231A8
analogous
#A87D31 #97A831 #5CA831
triadic
#97A831 #3197A8 #A83197
tetradic
#97A831 #31A87D #4231A8 #A8315C
square
#97A831 #31A87D #4231A8 #A8315C
split-complementary
#97A831 #315CA8 #7D31A8
monochromatic
#424915 #6C7923 #97A831 #B8CB4C #CBD87B

Accessibility & contrast

On white

2.64
#97A831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.96
#97A831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #97A831
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97A831#FFFFFF#000000##000000
##97A8311.002.647.967.96
#FFFFFF2.641.0021.0021.00
#0000007.9621.001.001.00
##0000007.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F1D
Deuteranopia (green-blind)
#B2A03A
Tritanopia (blue-blind)
#A09F91
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #97a831;
/* rgb */ color: rgb(151, 168, 49);
/* oklch */ color: oklch(69.6% 0.141 117.3);
Tailwind
colors: {
  custom: {
    50: '#b9c171',
    500: '#97a831',
    950: '#000000',
  },
}
SCSS
$custom: #97a831;
$custom-light: #b9c171;
$custom-dark: #000000;
JSON
{
  "hex": "#97a831",
  "rgb": {
    "r": 151,
    "g": 168,
    "b": 49
  },
  "hsl": {
    "h": 68.571,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.69598,
    "c": 0.14146,
    "h": 117.3
  },
  "luminance": 0.34806
}

Semantic roles & 50–950 ramp

primary
#97A831
secondary
#7F74C1
accent
#4ADE5F
background
#FBFBF7
surface
#F6F7ED
border
#D0D0C8
text
#121208
muted
#81817B

Preview Lab

Preview with #97A831

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

Preview Lab → · Contrast checker → · Palette generator →

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