#9AA228#9AA228

#9AA228 is a light, vivid yellow. Relative luminance 0.329; OKLCH L 68.4% C 0.139 H 113.3°. Best body text is #000000 at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#9AA228
RGBrgb(154, 162, 40)
HSLhsl(64, 60%, 40%)
HSVhsv(64, 75%, 64%)
CMYKcmyk(4.9%, 0%, 75.3%, 36.5%)
CIE-LABlab(64.05, -17.87, 58.10)
CIE-LCHlch(64.05, 60.78, 107.10°)
OKLaboklab(68.4% -0.0552 0.1279)
OKLCHoklch(68.4% 0.139 113.3)
XYZxyz(26.6306, 32.8645, 6.9477)
Luminance0.3286 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9AA228 #3028A2
analogous
#A26D28 #9AA228 #5DA228
triadic
#9AA228 #289AA2 #A2289A
tetradic
#9AA228 #28A26D #3028A2 #A2285D
square
#9AA228 #28A26D #3028A2 #A2285D
split-complementary
#9AA228 #285DA2 #6D28A2
monochromatic
#3D4010 #6B711C #9AA228 #C4CE39 #D3DA6A

Accessibility & contrast

On white

2.77
#9AA228 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.57
#9AA228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9AA228
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9AA228#FFFFFF#000000##000000
##9AA2281.002.777.577.57
#FFFFFF2.771.0021.0021.00
#0000007.5721.001.001.00
##0000007.5721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9aa228;
/* rgb */ color: rgb(154, 162, 40);
/* oklch */ color: oklch(68.4% 0.139 113.3);
Tailwind
colors: {
  custom: {
    50: '#bbbd6c',
    500: '#9aa228',
    950: '#000000',
  },
}
SCSS
$custom: #9aa228;
$custom-light: #bbbd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9aa228",
  "rgb": {
    "r": 154,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 63.934,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.68397,
    "c": 0.13925,
    "h": 113.3
  },
  "luminance": 0.32864
}

Semantic roles & 50–950 ramp

primary
#9AA228
secondary
#6B65C1
accent
#44E44F
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #9AA228

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

Preview Lab → · Contrast checker → · Palette generator →

#9AA228 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva