#9BAF28#9BAF28

#9BAF28 is a light, vivid yellow. Relative luminance 0.378; OKLCH L 71.5% C 0.153 H 118.0°. Best body text is #000000 at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#9BAF28
RGBrgb(155, 175, 40)
HSLhsl(69, 63%, 42%)
HSVhsv(69, 77%, 69%)
CMYKcmyk(11.4%, 0%, 77.1%, 31.4%)
CIE-LABlab(67.86, -23.96, 61.67)
CIE-LCHlch(67.86, 66.16, 111.24°)
OKLaboklab(71.47% -0.0721 0.1354)
OKLCHoklch(71.47% 0.153 118)
XYZxyz(29.2312, 37.7820, 7.7598)
Luminance0.3778 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BAF28 #3C28AF
analogous
#AF8028 #9BAF28 #57AF28
triadic
#9BAF28 #289BAF #AF289B
tetradic
#9BAF28 #28AF80 #3C28AF #AF2857
square
#9BAF28 #28AF80 #3C28AF #AF2857
split-complementary
#9BAF28 #2857AF #8028AF
monochromatic
#434B11 #6F7D1D #9BAF28 #BED441 #CFDF73

Accessibility & contrast

On white

2.45
#9BAF28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.56
#9BAF28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BAF28
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BAF28#FFFFFF#000000##000000
##9BAF281.002.458.568.56
#FFFFFF2.451.0021.0021.00
#0000008.5621.001.001.00
##0000008.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA501
Deuteranopia (green-blind)
#B9A635
Tritanopia (blue-blind)
#A5A596
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #9baf28;
/* rgb */ color: rgb(155, 175, 40);
/* oklch */ color: oklch(71.5% 0.153 118.0);
Tailwind
colors: {
  custom: {
    50: '#bcc66d',
    500: '#9baf28',
    950: '#000000',
  },
}
SCSS
$custom: #9baf28;
$custom-light: #bcc66d;
$custom-dark: #000000;
JSON
{
  "hex": "#9baf28",
  "rgb": {
    "r": 155,
    "g": 175,
    "b": 40
  },
  "hsl": {
    "h": 68.889,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.71474,
    "c": 0.15337,
    "h": 118
  },
  "luminance": 0.37782
}

Semantic roles & 50–950 ramp

primary
#9BAF28
secondary
#7A6DC6
accent
#42E65A
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#121308
muted
#81827B

Preview Lab

Preview with #9BAF28

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

Preview Lab → · Contrast checker → · Palette generator →

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