#97AE1F#97AE1F

#97AE1F is a light, vivid yellow. Relative luminance 0.369; OKLCH L 70.9% C 0.158 H 119.1°. Best body text is #000000 at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#97AE1F
RGBrgb(151, 174, 31)
HSLhsl(70, 70%, 40%)
HSVhsv(70, 82%, 68%)
CMYKcmyk(13.2%, 0%, 82.2%, 31.8%)
CIE-LABlab(67.24, -25.52, 63.61)
CIE-LCHlch(67.24, 68.53, 111.86°)
OKLaboklab(70.89% -0.0768 0.1381)
OKLCHoklch(70.89% 0.158 119.1)
XYZxyz(28.1465, 36.9505, 6.9455)
Luminance0.3695 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97AE1F #361FAE
analogous
#AE7D1F #97AE1F #50AE1F
triadic
#97AE1F #1F97AE #AE1F97
tetradic
#97AE1F #1FAE7D #361FAE #AE1F50
square
#97AE1F #1FAE7D #361FAE #AE1F50
split-complementary
#97AE1F #1F50AE #7D1FAE
monochromatic
#3D460C #6A7A16 #97AE1F #BFDA30 #CFE364

Accessibility & contrast

On white

2.50
#97AE1F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.39
#97AE1F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #97AE1F
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97AE1F#FFFFFF#000000##000000
##97AE1F1.002.508.398.39
#FFFFFF2.501.0021.0021.00
#0000008.3921.001.001.00
##0000008.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA400
Deuteranopia (green-blind)
#B7A42E
Tritanopia (blue-blind)
#A0A494
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #97ae1f;
/* rgb */ color: rgb(151, 174, 31);
/* oklch */ color: oklch(70.9% 0.158 119.1);
Tailwind
colors: {
  custom: {
    50: '#b9c66a',
    500: '#97ae1f',
    950: '#000000',
  },
}
SCSS
$custom: #97ae1f;
$custom-light: #b9c66a;
$custom-dark: #000000;
JSON
{
  "hex": "#97ae1f",
  "rgb": {
    "r": 151,
    "g": 174,
    "b": 31
  },
  "hsl": {
    "h": 69.65,
    "s": 69.756,
    "l": 40.196
  },
  "oklch": {
    "l": 0.70889,
    "c": 0.15803,
    "h": 119.1
  },
  "luminance": 0.3695
}

Semantic roles & 50–950 ramp

primary
#97AE1F
secondary
#7160C8
accent
#3BED58
background
#FBFCF6
surface
#F7F8EC
border
#D0D1C7
text
#121307
muted
#81827A

Preview Lab

Preview with #97AE1F

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

Preview Lab → · Contrast checker → · Palette generator →

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