#97A540#97A540

#97A540 is a light, vivid yellow. Relative luminance 0.339; OKLCH L 69.0% C 0.127 H 116.5°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#97A540
RGBrgb(151, 165, 64)
HSLhsl(68, 44%, 45%)
HSVhsv(68, 61%, 65%)
CMYKcmyk(8.5%, 0%, 61.2%, 35.3%)
CIE-LABlab(64.85, -19.23, 49.30)
CIE-LCHlch(64.85, 52.92, 111.31°)
OKLaboklab(69.04% -0.0564 0.1132)
OKLCHoklch(69.04% 0.127 116.5)
XYZxyz(27.1436, 33.8601, 9.9552)
Luminance0.3386 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97A540 #4E40A5
analogous
#A58140 #97A540 #64A540
triadic
#97A540 #4097A5 #A54097
tetradic
#97A540 #40A581 #4E40A5 #A54064
square
#97A540 #40A581 #4E40A5 #A54064
split-complementary
#97A540 #4064A5 #8140A5
monochromatic
#464D1E #6F792F #97A540 #B4C261 #C9D38D

Accessibility & contrast

On white

2.70
#97A540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#97A540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #97A540
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97A540#FFFFFF#000000##000000
##97A5401.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09D34
Deuteranopia (green-blind)
#AE9E47
Tritanopia (blue-blind)
#A09C90
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #97a540;
/* rgb */ color: rgb(151, 165, 64);
/* oklch */ color: oklch(69.0% 0.127 116.5);
Tailwind
colors: {
  custom: {
    50: '#b8bf79',
    500: '#97a540',
    950: '#000000',
  },
}
SCSS
$custom: #97a540;
$custom-light: #b8bf79;
$custom-dark: #000000;
JSON
{
  "hex": "#97a540",
  "rgb": {
    "r": 151,
    "g": 165,
    "b": 64
  },
  "hsl": {
    "h": 68.317,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.69036,
    "c": 0.1265,
    "h": 116.5
  },
  "luminance": 0.3386
}

Semantic roles & 50–950 ramp

primary
#97A540
secondary
#8B83BE
accent
#54D466
background
#FBFBF7
surface
#F6F7EE
border
#D0D0C9
text
#121209
muted
#81817B

Preview Lab

Preview with #97A540

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

Preview Lab → · Contrast checker → · Palette generator →

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