#97A51F#97A51F

#97A51F is a light, vivid yellow. Relative luminance 0.336; OKLCH L 68.8% C 0.148 H 115.9°. Best body text is #000000 at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#97A51F
RGBrgb(151, 165, 31)
HSLhsl(66, 68%, 38%)
HSVhsv(66, 81%, 65%)
CMYKcmyk(8.5%, 0%, 81.2%, 35.3%)
CIE-LABlab(64.63, -21.06, 61.32)
CIE-LCHlch(64.63, 64.84, 108.96°)
OKLaboklab(68.79% -0.0646 0.1332)
OKLCHoklch(68.79% 0.148 115.9)
XYZxyz(26.4657, 33.5889, 6.3852)
Luminance0.3359 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97A51F #2D1FA5
analogous
#A5701F #97A51F #54A51F
triadic
#97A51F #1F97A5 #A51F97
tetradic
#97A51F #1FA570 #2D1FA5 #A51F54
square
#97A51F #1FA570 #2D1FA5 #A51F54
split-complementary
#97A51F #1F54A5 #701FA5
monochromatic
#393E0C #687115 #97A51F #C5D72A #D3E15E

Accessibility & contrast

On white

2.72
#97A51F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.72
#97A51F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #97A51F
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97A51F#FFFFFF#000000##000000
##97A51F1.002.727.727.72
#FFFFFF2.721.0021.0021.00
#0000007.7221.001.001.00
##0000007.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C00
Deuteranopia (green-blind)
#B09E2D
Tritanopia (blue-blind)
#A19B8D
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #97a51f;
/* rgb */ color: rgb(151, 165, 31);
/* oklch */ color: oklch(68.8% 0.148 115.9);
Tailwind
colors: {
  custom: {
    50: '#b9bf68',
    500: '#97a51f',
    950: '#000000',
  },
}
SCSS
$custom: #97a51f;
$custom-light: #b9bf68;
$custom-dark: #000000;
JSON
{
  "hex": "#97a51f",
  "rgb": {
    "r": 151,
    "g": 165,
    "b": 31
  },
  "hsl": {
    "h": 66.269,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.68793,
    "c": 0.14804,
    "h": 115.9
  },
  "luminance": 0.33589
}

Semantic roles & 50–950 ramp

primary
#97A51F
secondary
#665BC5
accent
#3DEB4F
background
#FBFBF6
surface
#F7F7EB
border
#D0D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #97A51F

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

Preview Lab → · Contrast checker → · Palette generator →

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