#97A42B#97A42B

#97A42B 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#97A42B
RGBrgb(151, 164, 43)
HSLhsl(66, 58%, 41%)
HSVhsv(66, 74%, 64%)
CMYKcmyk(7.9%, 0%, 73.8%, 35.7%)
CIE-LABlab(64.41, -20.04, 57.31)
CIE-LCHlch(64.41, 60.72, 109.28°)
OKLaboklab(68.63% -0.0608 0.1268)
OKLCHoklch(68.63% 0.141 115.6)
XYZxyz(26.4747, 33.3051, 7.3189)
Luminance0.3331 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97A42B #382BA4
analogous
#A4742B #97A42B #5BA42B
triadic
#97A42B #2B97A4 #A42B97
tetradic
#97A42B #2BA474 #382BA4 #A42B5B
square
#97A42B #2BA474 #382BA4 #A42B5B
split-complementary
#97A42B #2B5BA4 #742BA4
monochromatic
#3E4312 #6A741E #97A42B #BECD3F #CED970

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##97A42B#FFFFFF#000000##000000
##97A42B1.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)
#B09B13
Deuteranopia (green-blind)
#AF9D35
Tritanopia (blue-blind)
#A19A8D
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #97a42b;
/* rgb */ color: rgb(151, 164, 43);
/* oklch */ color: oklch(68.6% 0.141 115.6);
Tailwind
colors: {
  custom: {
    50: '#b9be6d',
    500: '#97a42b',
    950: '#000000',
  },
}
SCSS
$custom: #97a42b;
$custom-light: #b9be6d;
$custom-dark: #000000;
JSON
{
  "hex": "#97a42b",
  "rgb": {
    "r": 151,
    "g": 164,
    "b": 43
  },
  "hsl": {
    "h": 66.446,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.6863,
    "c": 0.14064,
    "h": 115.6
  },
  "luminance": 0.33305
}

Semantic roles & 50–950 ramp

primary
#97A42B
secondary
#736AC1
accent
#46E257
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121208
muted
#81817B

Preview Lab

Preview with #97A42B

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

Preview Lab → · Contrast checker → · Palette generator →

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