#97A11B#97A11B

#97A11B is a light, vivid yellow. Relative luminance 0.321; OKLCH L 67.8% C 0.145 H 114.2°. Best body text is #000000 at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#97A11B
RGBrgb(151, 161, 27)
HSLhsl(64, 71%, 37%)
HSVhsv(64, 83%, 63%)
CMYKcmyk(6.2%, 0%, 83.2%, 36.9%)
CIE-LABlab(63.47, -19.18, 61.38)
CIE-LCHlch(63.47, 64.31, 107.35°)
OKLaboklab(67.85% -0.0596 0.1326)
OKLCHoklch(67.85% 0.145 114.2)
XYZxyz(25.7060, 32.1487, 5.8879)
Luminance0.3215 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97A11B #251BA1
analogous
#A1681B #97A11B #54A11B
triadic
#97A11B #1B97A1 #A11B97
tetradic
#97A11B #1BA168 #251BA1 #A11B54
square
#97A11B #1BA168 #251BA1 #A11B54
split-complementary
#97A11B #1B54A1 #681BA1
monochromatic
#353809 #666D12 #97A11B #C8D524 #D8E254

Accessibility & contrast

On white

2.83
#97A11B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.43
#97A11B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #97A11B
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97A11B#FFFFFF#000000##000000
##97A11B1.002.837.437.43
#FFFFFF2.831.0021.0021.00
#0000007.4321.001.001.00
##0000007.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9900
Deuteranopia (green-blind)
#AD9B29
Tritanopia (blue-blind)
#A29789
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #97a11b;
/* rgb */ color: rgb(151, 161, 27);
/* oklch */ color: oklch(67.8% 0.145 114.2);
Tailwind
colors: {
  custom: {
    50: '#b9bc66',
    500: '#97a11b',
    950: '#000000',
  },
}
SCSS
$custom: #97a11b;
$custom-light: #b9bc66;
$custom-dark: #000000;
JSON
{
  "hex": "#97a11b",
  "rgb": {
    "r": 151,
    "g": 161,
    "b": 27
  },
  "hsl": {
    "h": 64.478,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.67849,
    "c": 0.14543,
    "h": 114.2
  },
  "luminance": 0.32148
}

Semantic roles & 50–950 ramp

primary
#97A11B
secondary
#5B52C5
accent
#3AEE47
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121206
muted
#81817A

Preview Lab

Preview with #97A11B

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

Preview Lab → · Contrast checker → · Palette generator →

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