#97A51B#97A51B

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

Color values

HEX#97A51B
RGBrgb(151, 165, 27)
HSLhsl(66, 72%, 38%)
HSVhsv(66, 84%, 65%)
CMYKcmyk(8.5%, 0%, 83.6%, 35.3%)
CIE-LABlab(64.62, -21.20, 62.37)
CIE-LCHlch(64.62, 65.87, 108.77°)
OKLaboklab(68.78% -0.0652 0.1348)
OKLCHoklch(68.78% 0.15 115.8)
XYZxyz(26.4162, 33.5691, 6.1246)
Luminance0.3357 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97A51B #291BA5
analogous
#A56E1B #97A51B #52A51B
triadic
#97A51B #1B97A5 #A51B97
tetradic
#97A51B #1BA56E #291BA5 #A51B52
square
#97A51B #1BA56E #291BA5 #A51B52
split-complementary
#97A51B #1B52A5 #6E1BA5
monochromatic
#373C0A #677012 #97A51B #C7DA24 #D5E357

Accessibility & contrast

On white

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

On black

7.71
#97A51B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #97A51B
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97A51B#FFFFFF#000000##000000
##97A51B1.002.727.717.71
#FFFFFF2.721.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #97a51b;
/* rgb */ color: rgb(151, 165, 27);
/* oklch */ color: oklch(68.8% 0.150 115.8);
Tailwind
colors: {
  custom: {
    50: '#b9bf67',
    500: '#97a51b',
    950: '#000000',
  },
}
SCSS
$custom: #97a51b;
$custom-light: #b9bf67;
$custom-dark: #000000;
JSON
{
  "hex": "#97a51b",
  "rgb": {
    "r": 151,
    "g": 165,
    "b": 27
  },
  "hsl": {
    "h": 66.087,
    "s": 71.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.68776,
    "c": 0.14971,
    "h": 115.8
  },
  "luminance": 0.33569
}

Semantic roles & 50–950 ramp

primary
#97A51B
secondary
#6155C7
accent
#39EF4C
background
#FBFBF6
surface
#F7F7EB
border
#D0D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #97A51B

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

Preview Lab → · Contrast checker → · Palette generator →

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