#97A731#97A731

#97A731 is a light, vivid yellow. Relative luminance 0.344; OKLCH L 69.4% C 0.140 H 116.9°. Best body text is #000000 at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#97A731
RGBrgb(151, 167, 49)
HSLhsl(68, 55%, 42%)
HSVhsv(68, 71%, 65%)
CMYKcmyk(9.6%, 0%, 70.7%, 34.5%)
CIE-LABlab(65.31, -21.24, 55.99)
CIE-LCHlch(65.31, 59.89, 110.77°)
OKLaboklab(69.37% -0.0635 0.1251)
OKLCHoklch(69.37% 0.14 116.9)
XYZxyz(27.1362, 34.4388, 8.1230)
Luminance0.3444 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97A731 #4131A7
analogous
#A77C31 #97A731 #5CA731
triadic
#97A731 #3197A7 #A73197
tetradic
#97A731 #31A77C #4131A7 #A7315C
square
#97A731 #31A77C #4131A7 #A7315C
split-complementary
#97A731 #315CA7 #7C31A7
monochromatic
#414815 #6C7823 #97A731 #B9CA4B #CBD87A

Accessibility & contrast

On white

2.66
#97A731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.89
#97A731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #97A731
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97A731#FFFFFF#000000##000000
##97A7311.002.667.897.89
#FFFFFF2.661.0021.0021.00
#0000007.8921.001.001.00
##0000007.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E1D
Deuteranopia (green-blind)
#B19F3A
Tritanopia (blue-blind)
#A09E90
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #97a731;
/* rgb */ color: rgb(151, 167, 49);
/* oklch */ color: oklch(69.4% 0.140 116.9);
Tailwind
colors: {
  custom: {
    50: '#b9c171',
    500: '#97a731',
    950: '#000000',
  },
}
SCSS
$custom: #97a731;
$custom-light: #b9c171;
$custom-dark: #000000;
JSON
{
  "hex": "#97a731",
  "rgb": {
    "r": 151,
    "g": 167,
    "b": 49
  },
  "hsl": {
    "h": 68.136,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.69366,
    "c": 0.14029,
    "h": 116.9
  },
  "luminance": 0.34438
}

Semantic roles & 50–950 ramp

primary
#97A731
secondary
#7E73C1
accent
#4ADE5E
background
#FBFBF7
surface
#F6F7ED
border
#D0D0C8
text
#121208
muted
#81817B

Preview Lab

Preview with #97A731

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

Preview Lab → · Contrast checker → · Palette generator →

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