#97A41F#97A41F

#97A41F is a light, vivid yellow. Relative luminance 0.332; OKLCH L 68.6% C 0.147 H 115.5°. Best body text is #000000 at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#97A41F
RGBrgb(151, 164, 31)
HSLhsl(66, 68%, 38%)
HSVhsv(66, 81%, 64%)
CMYKcmyk(7.9%, 0%, 81.1%, 35.7%)
CIE-LABlab(64.35, -20.56, 61.07)
CIE-LCHlch(64.35, 64.44, 108.61°)
OKLaboklab(68.56% -0.0632 0.1327)
OKLCHoklch(68.56% 0.147 115.5)
XYZxyz(26.2861, 33.2296, 6.3253)
Luminance0.3323 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97A41F #2C1FA4
analogous
#A46E1F #97A41F #54A41F
triadic
#97A41F #1F97A4 #A41F97
tetradic
#97A41F #1FA46E #2C1FA4 #A41F54
square
#97A41F #1FA46E #2C1FA4 #A41F54
split-complementary
#97A41F #1F54A4 #6E1FA4
monochromatic
#383D0C #687115 #97A41F #C6D72A #D4E05D

Accessibility & contrast

On white

2.75
#97A41F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.65
#97A41F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #97A41F
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97A41F#FFFFFF#000000##000000
##97A41F1.002.757.657.65
#FFFFFF2.751.0021.0021.00
#0000007.6521.001.001.00
##0000007.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09B00
Deuteranopia (green-blind)
#AF9D2C
Tritanopia (blue-blind)
#A19A8C
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #97a41f;
/* rgb */ color: rgb(151, 164, 31);
/* oklch */ color: oklch(68.6% 0.147 115.5);
Tailwind
colors: {
  custom: {
    50: '#b9be68',
    500: '#97a41f',
    950: '#000000',
  },
}
SCSS
$custom: #97a41f;
$custom-light: #b9be68;
$custom-dark: #000000;
JSON
{
  "hex": "#97a41f",
  "rgb": {
    "r": 151,
    "g": 164,
    "b": 31
  },
  "hsl": {
    "h": 65.865,
    "s": 68.205,
    "l": 38.235
  },
  "oklch": {
    "l": 0.68562,
    "c": 0.14695,
    "h": 115.5
  },
  "luminance": 0.33229
}

Semantic roles & 50–950 ramp

primary
#97A41F
secondary
#655AC5
accent
#3DEB4E
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #97A41F

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

Preview Lab → · Contrast checker → · Palette generator →

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