#97A42A#97A42A

#97A42A is a light, vivid yellow. Relative luminance 0.333; OKLCH L 68.6% C 0.141 H 115.6°. Best body text is #000000 at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#97A42A
RGBrgb(151, 164, 42)
HSLhsl(66, 59%, 40%)
HSVhsv(66, 74%, 64%)
CMYKcmyk(7.9%, 0%, 74.4%, 35.7%)
CIE-LABlab(64.40, -20.09, 57.66)
CIE-LCHlch(64.40, 61.06, 109.21°)
OKLaboklab(68.62% -0.061 0.1274)
OKLCHoklch(68.62% 0.141 115.6)
XYZxyz(26.4566, 33.2978, 7.2235)
Luminance0.3330 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97A42A #372AA4
analogous
#A4742A #97A42A #5AA42A
triadic
#97A42A #2A97A4 #A42A97
tetradic
#97A42A #2AA474 #372AA4 #A42A5A
square
#97A42A #2AA474 #372AA4 #A42A5A
split-complementary
#97A42A #2A5AA4 #742AA4
monochromatic
#3D4311 #6A731E #97A42A #BECD3E #CFDA6E

Accessibility & contrast

On white

2.74
#97A42A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.66
#97A42A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #97A42A
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97A42A#FFFFFF#000000##000000
##97A42A1.002.747.667.66
#FFFFFF2.741.0021.0021.00
#0000007.6621.001.001.00
##0000007.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09B10
Deuteranopia (green-blind)
#AF9D34
Tritanopia (blue-blind)
#A19A8D
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #97a42a;
/* rgb */ color: rgb(151, 164, 42);
/* oklch */ color: oklch(68.6% 0.141 115.6);
Tailwind
colors: {
  custom: {
    50: '#b9be6d',
    500: '#97a42a',
    950: '#000000',
  },
}
SCSS
$custom: #97a42a;
$custom-light: #b9be6d;
$custom-dark: #000000;
JSON
{
  "hex": "#97a42a",
  "rgb": {
    "r": 151,
    "g": 164,
    "b": 42
  },
  "hsl": {
    "h": 66.393,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.68623,
    "c": 0.14124,
    "h": 115.6
  },
  "luminance": 0.33297
}

Semantic roles & 50–950 ramp

primary
#97A42A
secondary
#7269C1
accent
#45E256
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #97A42A

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

Preview Lab → · Contrast checker → · Palette generator →

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