#97A228#97A228

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

Color values

HEX#97A228
RGBrgb(151, 162, 40)
HSLhsl(65, 60%, 40%)
HSVhsv(65, 75%, 64%)
CMYKcmyk(6.8%, 0%, 75.3%, 36.5%)
CIE-LABlab(63.81, -19.17, 57.79)
CIE-LCHlch(63.81, 60.89, 108.36°)
OKLaboklab(68.15% -0.0586 0.1273)
OKLCHoklch(68.15% 0.14 114.7)
XYZxyz(26.0666, 32.5736, 6.9213)
Luminance0.3257 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97A228 #3328A2
analogous
#A27028 #97A228 #5AA228
triadic
#97A228 #2897A2 #A22897
tetradic
#97A228 #28A270 #3328A2 #A2285A
square
#97A228 #28A270 #3328A2 #A2285A
split-complementary
#97A228 #285AA2 #7028A2
monochromatic
#3C4010 #69711C #97A228 #C1CE39 #D0DA6A

Accessibility & contrast

On white

2.79
#97A228 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##97A228#FFFFFF#000000##000000
##97A2281.002.797.517.51
#FFFFFF2.791.0021.0021.00
#0000007.5121.001.001.00
##0000007.5121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #97a228;
/* rgb */ color: rgb(151, 162, 40);
/* oklch */ color: oklch(68.1% 0.140 114.7);
Tailwind
colors: {
  custom: {
    50: '#b9bd6c',
    500: '#97a228',
    950: '#000000',
  },
}
SCSS
$custom: #97a228;
$custom-light: #b9bd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#97a228",
  "rgb": {
    "r": 151,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 65.41,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.68148,
    "c": 0.14017,
    "h": 114.7
  },
  "luminance": 0.32573
}

Semantic roles & 50–950 ramp

primary
#97A228
secondary
#6D65C1
accent
#44E453
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #97A228

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

Preview Lab → · Contrast checker → · Palette generator →

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