#97A71F#97A71F

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

Color values

HEX#97A71F
RGBrgb(151, 167, 31)
HSLhsl(67, 69%, 39%)
HSVhsv(67, 81%, 65%)
CMYKcmyk(9.6%, 0%, 81.4%, 34.5%)
CIE-LABlab(65.21, -22.06, 61.83)
CIE-LCHlch(65.21, 65.65, 109.64°)
OKLaboklab(69.26% -0.0673 0.1343)
OKLCHoklch(69.26% 0.15 116.6)
XYZxyz(26.8293, 34.3160, 6.5064)
Luminance0.3432 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97A71F #2F1FA7
analogous
#A7731F #97A71F #53A71F
triadic
#97A71F #1F97A7 #A71F97
tetradic
#97A71F #1FA773 #2F1FA7 #A71F53
square
#97A71F #1FA773 #2F1FA7 #A71F53
split-complementary
#97A71F #1F53A7 #731FA7
monochromatic
#3A400C #687315 #97A71F #C3D82B #D2E15F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##97A71F#FFFFFF#000000##000000
##97A71F1.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)
#B29F2D
Tritanopia (blue-blind)
#A19D8F
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #97a71f;
/* rgb */ color: rgb(151, 167, 31);
/* oklch */ color: oklch(69.3% 0.150 116.6);
Tailwind
colors: {
  custom: {
    50: '#b9c169',
    500: '#97a71f',
    950: '#000000',
  },
}
SCSS
$custom: #97a71f;
$custom-light: #b9c169;
$custom-dark: #000000;
JSON
{
  "hex": "#97a71f",
  "rgb": {
    "r": 151,
    "g": 167,
    "b": 31
  },
  "hsl": {
    "h": 67.059,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.69258,
    "c": 0.15024,
    "h": 116.6
  },
  "luminance": 0.34316
}

Semantic roles & 50–950 ramp

primary
#97A71F
secondary
#685CC6
accent
#3CEC51
background
#FBFBF6
surface
#F7F7EB
border
#D0D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #97A71F

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

Preview Lab → · Contrast checker → · Palette generator →

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