#97A226#97A226

#97A226 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#97A226
RGBrgb(151, 162, 38)
HSLhsl(65, 62%, 39%)
HSVhsv(65, 77%, 64%)
CMYKcmyk(6.8%, 0%, 76.5%, 36.5%)
CIE-LABlab(63.80, -19.27, 58.45)
CIE-LCHlch(63.80, 61.54, 108.24°)
OKLaboklab(68.14% -0.059 0.1284)
OKLCHoklch(68.14% 0.141 114.7)
XYZxyz(26.0334, 32.5604, 6.7467)
Luminance0.3256 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97A226 #3126A2
analogous
#A26F26 #97A226 #59A226
triadic
#97A226 #2697A2 #A22697
tetradic
#97A226 #26A26F #3126A2 #A22659
square
#97A226 #26A26F #3126A2 #A22659
split-complementary
#97A226 #2659A2 #6F26A2
monochromatic
#3B3F0F #69701A #97A226 #C2D035 #D1DB67

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##97A226#FFFFFF#000000##000000
##97A2261.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)
#AE9A06
Deuteranopia (green-blind)
#AD9C31
Tritanopia (blue-blind)
#A1988B
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #97a226;
/* rgb */ color: rgb(151, 162, 38);
/* oklch */ color: oklch(68.1% 0.141 114.7);
Tailwind
colors: {
  custom: {
    50: '#b9bd6b',
    500: '#97a226',
    950: '#000000',
  },
}
SCSS
$custom: #97a226;
$custom-light: #b9bd6b;
$custom-dark: #000000;
JSON
{
  "hex": "#97a226",
  "rgb": {
    "r": 151,
    "g": 162,
    "b": 38
  },
  "hsl": {
    "h": 65.323,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.68136,
    "c": 0.14128,
    "h": 114.7
  },
  "luminance": 0.3256
}

Semantic roles & 50–950 ramp

primary
#97A226
secondary
#6B63C1
accent
#43E551
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #97A226

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

Preview Lab → · Contrast checker → · Palette generator →

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