#97A231#97A231

#97A231 is a light, vivid yellow. Relative luminance 0.326; OKLCH L 68.2% C 0.135 H 114.8°. Best body text is #000000 at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#97A231
RGBrgb(151, 162, 49)
HSLhsl(66, 54%, 41%)
HSVhsv(66, 70%, 64%)
CMYKcmyk(6.8%, 0%, 69.8%, 36.5%)
CIE-LABlab(63.87, -18.71, 54.56)
CIE-LCHlch(63.87, 57.68, 108.92°)
OKLaboklab(68.21% -0.0565 0.1221)
OKLCHoklch(68.21% 0.135 114.8)
XYZxyz(26.2379, 32.6422, 7.8235)
Luminance0.3264 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97A231 #3C31A2
analogous
#A27531 #97A231 #5FA231
triadic
#97A231 #3197A2 #A23197
tetradic
#97A231 #31A275 #3C31A2 #A2315F
square
#97A231 #31A275 #3C31A2 #A2315F
split-complementary
#97A231 #315FA2 #7531A2
monochromatic
#3F4415 #6B7323 #97A231 #BBC848 #CDD677

Accessibility & contrast

On white

2.79
#97A231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.53
#97A231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #97A231
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97A231#FFFFFF#000000##000000
##97A2311.002.797.537.53
#FFFFFF2.791.0021.0021.00
#0000007.5321.001.001.00
##0000007.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A1F
Deuteranopia (green-blind)
#AD9C3A
Tritanopia (blue-blind)
#A1998C
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #97a231;
/* rgb */ color: rgb(151, 162, 49);
/* oklch */ color: oklch(68.2% 0.135 114.8);
Tailwind
colors: {
  custom: {
    50: '#b9bd70',
    500: '#97a231',
    950: '#000000',
  },
}
SCSS
$custom: #97a231;
$custom-light: #b9bd70;
$custom-dark: #000000;
JSON
{
  "hex": "#97a231",
  "rgb": {
    "r": 151,
    "g": 162,
    "b": 49
  },
  "hsl": {
    "h": 65.841,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.68211,
    "c": 0.1345,
    "h": 114.8
  },
  "luminance": 0.32642
}

Semantic roles & 50–950 ramp

primary
#97A231
secondary
#7871BE
accent
#4BDD59
background
#FBFBF7
surface
#F6F6ED
border
#D0D0C8
text
#121208
muted
#81817B

Preview Lab

Preview with #97A231

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

Preview Lab → · Contrast checker → · Palette generator →

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