#97A42F#97A42F

#97A42F is a light, vivid yellow. Relative luminance 0.333; OKLCH L 68.7% C 0.138 H 115.7°. Best body text is #000000 at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#97A42F
RGBrgb(151, 164, 47)
HSLhsl(67, 55%, 41%)
HSVhsv(67, 71%, 64%)
CMYKcmyk(7.9%, 0%, 71.3%, 35.7%)
CIE-LABlab(64.43, -19.83, 55.88)
CIE-LCHlch(64.43, 59.30, 109.54°)
OKLaboklab(68.66% -0.0598 0.1245)
OKLCHoklch(68.66% 0.138 115.7)
XYZxyz(26.5517, 33.3359, 7.7245)
Luminance0.3333 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97A42F #3C2FA4
analogous
#A4772F #97A42F #5DA42F
triadic
#97A42F #2F97A4 #A42F97
tetradic
#97A42F #2FA477 #3C2FA4 #A42F5D
square
#97A42F #2FA477 #3C2FA4 #A42F5D
split-complementary
#97A42F #2F5DA4 #772FA4
monochromatic
#3F4514 #6B7421 #97A42F #BBCA46 #CDD876

Accessibility & contrast

On white

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

On black

7.67
#97A42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #97A42F
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97A42F#FFFFFF#000000##000000
##97A42F1.002.747.677.67
#FFFFFF2.741.0021.0021.00
#0000007.6721.001.001.00
##0000007.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C1B
Deuteranopia (green-blind)
#AF9D38
Tritanopia (blue-blind)
#A19B8D
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #97a42f;
/* rgb */ color: rgb(151, 164, 47);
/* oklch */ color: oklch(68.7% 0.138 115.7);
Tailwind
colors: {
  custom: {
    50: '#b9be6f',
    500: '#97a42f',
    950: '#000000',
  },
}
SCSS
$custom: #97a42f;
$custom-light: #b9be6f;
$custom-dark: #000000;
JSON
{
  "hex": "#97a42f",
  "rgb": {
    "r": 151,
    "g": 164,
    "b": 47
  },
  "hsl": {
    "h": 66.667,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.68658,
    "c": 0.13814,
    "h": 115.7
  },
  "luminance": 0.33335
}

Semantic roles & 50–950 ramp

primary
#97A42F
secondary
#786FC0
accent
#49DF5A
background
#FBFBF7
surface
#F6F6ED
border
#D0D0C8
text
#121208
muted
#81817B

Preview Lab

Preview with #97A42F

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

Preview Lab → · Contrast checker → · Palette generator →

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