#97A227#97A227

#97A227 is a light, vivid yellow. Relative luminance 0.326; OKLCH L 68.1% C 0.141 H 114.7°. Best body text is #000000 at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#97A227
RGBrgb(151, 162, 39)
HSLhsl(65, 61%, 39%)
HSVhsv(65, 76%, 64%)
CMYKcmyk(6.8%, 0%, 75.9%, 36.5%)
CIE-LABlab(63.81, -19.22, 58.12)
CIE-LCHlch(63.81, 61.22, 108.30°)
OKLaboklab(68.14% -0.0588 0.1278)
OKLCHoklch(68.14% 0.141 114.7)
XYZxyz(26.0498, 32.5669, 6.8328)
Luminance0.3257 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97A227 #3227A2
analogous
#A27027 #97A227 #5AA227
triadic
#97A227 #2797A2 #A22797
tetradic
#97A227 #27A270 #3227A2 #A2275A
square
#97A227 #27A270 #3227A2 #A2275A
split-complementary
#97A227 #275AA2 #7027A2
monochromatic
#3B3F0F #69711B #97A227 #C1CF37 #D1DB69

Accessibility & contrast

On white

2.80
#97A227 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.51
#97A227 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #97A227
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97A227#FFFFFF#000000##000000
##97A2271.002.807.517.51
#FFFFFF2.801.0021.0021.00
#0000007.5121.001.001.00
##0000007.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A09
Deuteranopia (green-blind)
#AD9C32
Tritanopia (blue-blind)
#A1988B
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #97a227;
/* rgb */ color: rgb(151, 162, 39);
/* oklch */ color: oklch(68.1% 0.141 114.7);
Tailwind
colors: {
  custom: {
    50: '#b9bd6b',
    500: '#97a227',
    950: '#000000',
  },
}
SCSS
$custom: #97a227;
$custom-light: #b9bd6b;
$custom-dark: #000000;
JSON
{
  "hex": "#97a227",
  "rgb": {
    "r": 151,
    "g": 162,
    "b": 39
  },
  "hsl": {
    "h": 65.366,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.68142,
    "c": 0.14073,
    "h": 114.7
  },
  "luminance": 0.32566
}

Semantic roles & 50–950 ramp

primary
#97A227
secondary
#6C64C1
accent
#43E452
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #97A227

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

Preview Lab → · Contrast checker → · Palette generator →

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