#97A81F#97A81F

#97A81F is a light, vivid yellow. Relative luminance 0.347; OKLCH L 69.5% C 0.151 H 117.0°. Best body text is #000000 at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#97A81F
RGBrgb(151, 168, 31)
HSLhsl(67, 69%, 39%)
HSVhsv(67, 82%, 66%)
CMYKcmyk(10.1%, 0%, 81.5%, 34.1%)
CIE-LABlab(65.50, -22.56, 62.08)
CIE-LCHlch(65.50, 66.06, 109.97°)
OKLaboklab(69.49% -0.0687 0.1349)
OKLCHoklch(69.49% 0.151 117)
XYZxyz(27.0132, 34.6839, 6.5677)
Luminance0.3468 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97A81F #301FA8
analogous
#A8751F #97A81F #53A81F
triadic
#97A81F #1F97A8 #A81F97
tetradic
#97A81F #1FA875 #301FA8 #A81F53
square
#97A81F #1FA875 #301FA8 #A81F53
split-complementary
#97A81F #1F53A8 #751FA8
monochromatic
#3A410C #697415 #97A81F #C3D82C #D2E260

Accessibility & contrast

On white

2.65
#97A81F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.94
#97A81F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #97A81F
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97A81F#FFFFFF#000000##000000
##97A81F1.002.657.947.94
#FFFFFF2.651.0021.0021.00
#0000007.9421.001.001.00
##0000007.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F00
Deuteranopia (green-blind)
#B2A02D
Tritanopia (blue-blind)
#A19E8F
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #97a81f;
/* rgb */ color: rgb(151, 168, 31);
/* oklch */ color: oklch(69.5% 0.151 117.0);
Tailwind
colors: {
  custom: {
    50: '#b9c169',
    500: '#97a81f',
    950: '#000000',
  },
}
SCSS
$custom: #97a81f;
$custom-light: #b9c169;
$custom-dark: #000000;
JSON
{
  "hex": "#97a81f",
  "rgb": {
    "r": 151,
    "g": 168,
    "b": 31
  },
  "hsl": {
    "h": 67.445,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.6949,
    "c": 0.15134,
    "h": 117
  },
  "luminance": 0.34684
}

Semantic roles & 50–950 ramp

primary
#97A81F
secondary
#6A5DC6
accent
#3CEC52
background
#FBFBF6
surface
#F7F7EB
border
#D0D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #97A81F

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

Preview Lab → · Contrast checker → · Palette generator →

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