#9BAA28#9BAA28

#9BAA28 is a light, vivid yellow. Relative luminance 0.359; OKLCH L 70.3% C 0.148 H 116.2°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#9BAA28
RGBrgb(155, 170, 40)
HSLhsl(67, 62%, 41%)
HSVhsv(67, 76%, 67%)
CMYKcmyk(8.8%, 0%, 76.5%, 33.3%)
CIE-LABlab(66.42, -21.48, 60.34)
CIE-LCHlch(66.42, 64.05, 109.60°)
OKLaboklab(70.32% -0.0652 0.1326)
OKLCHoklch(70.32% 0.148 116.2)
XYZxyz(28.2761, 35.8716, 7.4414)
Luminance0.3587 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BAA28 #3728AA
analogous
#AA7828 #9BAA28 #5AAA28
triadic
#9BAA28 #289BAA #AA289B
tetradic
#9BAA28 #28AA78 #3728AA #AA285A
square
#9BAA28 #28AA78 #3728AA #AA285A
split-complementary
#9BAA28 #285AAA #7828AA
monochromatic
#414711 #6E781C #9BAA28 #C0D23E #D0DD6F

Accessibility & contrast

On white

2.57
#9BAA28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#9BAA28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BAA28
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BAA28#FFFFFF#000000##000000
##9BAA281.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A106
Deuteranopia (green-blind)
#B5A234
Tritanopia (blue-blind)
#A5A092
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #9baa28;
/* rgb */ color: rgb(155, 170, 40);
/* oklch */ color: oklch(70.3% 0.148 116.2);
Tailwind
colors: {
  custom: {
    50: '#bcc36d',
    500: '#9baa28',
    950: '#000000',
  },
}
SCSS
$custom: #9baa28;
$custom-light: #bcc36d;
$custom-dark: #000000;
JSON
{
  "hex": "#9baa28",
  "rgb": {
    "r": 155,
    "g": 170,
    "b": 40
  },
  "hsl": {
    "h": 66.923,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.70318,
    "c": 0.14775,
    "h": 116.2
  },
  "luminance": 0.35871
}

Semantic roles & 50–950 ramp

primary
#9BAA28
secondary
#746AC4
accent
#43E556
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#121208
muted
#81817B

Preview Lab

Preview with #9BAA28

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

Preview Lab → · Contrast checker → · Palette generator →

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