#97A01F#97A01F

#97A01F is a light, vivid yellow. Relative luminance 0.318; OKLCH L 67.6% C 0.143 H 113.8°. Best body text is #000000 at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#97A01F
RGBrgb(151, 160, 31)
HSLhsl(64, 68%, 37%)
HSVhsv(64, 81%, 63%)
CMYKcmyk(5.6%, 0%, 80.6%, 37.3%)
CIE-LABlab(63.19, -18.53, 60.05)
CIE-LCHlch(63.19, 62.85, 107.15°)
OKLaboklab(67.64% -0.0576 0.1305)
OKLCHoklch(67.64% 0.143 113.8)
XYZxyz(25.5814, 31.8204, 6.0904)
Luminance0.3182 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97A01F #281FA0
analogous
#A0681F #97A01F #57A01F
triadic
#97A01F #1F97A0 #A01F97
tetradic
#97A01F #1FA068 #281FA0 #A01F57
square
#97A01F #1FA068 #281FA0 #A01F57
split-complementary
#97A01F #1F57A0 #681FA0
monochromatic
#36390B #676D15 #97A01F #C7D329 #D6DF5A

Accessibility & contrast

On white

2.85
#97A01F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.36
#97A01F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #97A01F
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97A01F#FFFFFF#000000##000000
##97A01F1.002.857.367.36
#FFFFFF2.851.0021.0021.00
#0000007.3621.001.001.00
##0000007.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9800
Deuteranopia (green-blind)
#AC9A2C
Tritanopia (blue-blind)
#A29689
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #97a01f;
/* rgb */ color: rgb(151, 160, 31);
/* oklch */ color: oklch(67.6% 0.143 113.8);
Tailwind
colors: {
  custom: {
    50: '#b9bb68',
    500: '#97a01f',
    950: '#000000',
  },
}
SCSS
$custom: #97a01f;
$custom-light: #b9bb68;
$custom-dark: #000000;
JSON
{
  "hex": "#97a01f",
  "rgb": {
    "r": 151,
    "g": 160,
    "b": 31
  },
  "hsl": {
    "h": 64.186,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.67637,
    "c": 0.14264,
    "h": 113.8
  },
  "luminance": 0.3182
}

Semantic roles & 50–950 ramp

primary
#97A01F
secondary
#5F58C3
accent
#3DEA49
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #97A01F

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

Preview Lab → · Contrast checker → · Palette generator →

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