#9B9B28#9B9B28

#9B9B28 is a light, vivid yellow. Relative luminance 0.306; OKLCH L 66.9% C 0.132 H 109.5°. Best body text is #000000 at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#9B9B28
RGBrgb(155, 155, 40)
HSLhsl(60, 59%, 38%)
HSVhsv(60, 74%, 61%)
CMYKcmyk(0%, 0%, 74.2%, 39.2%)
CIE-LABlab(62.14, -13.81, 56.33)
CIE-LCHlch(62.14, 58.00, 103.77°)
OKLaboklab(66.89% -0.0439 0.1241)
OKLCHoklch(66.89% 0.132 109.5)
XYZxyz(25.6228, 30.5652, 6.5570)
Luminance0.3056 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B9B28 #28289B
analogous
#9B6128 #9B9B28 #619B28
triadic
#9B9B28 #289B9B #9B289B
tetradic
#9B9B28 #289B61 #28289B #9B2861
square
#9B9B28 #289B61 #28289B #9B2861
split-complementary
#9B9B28 #28619B #61289B
monochromatic
#3A3A0F #6A6A1B #9B9B28 #CBCB35 #D7D766

Accessibility & contrast

On white

2.95
#9B9B28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.11
#9B9B28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9B9B28
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B9B28#FFFFFF#000000##000000
##9B9B281.002.957.117.11
#FFFFFF2.951.0021.0021.00
#0000007.1121.001.001.00
##0000007.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89410
Deuteranopia (green-blind)
#A99831
Tritanopia (blue-blind)
#A69185
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #9b9b28;
/* rgb */ color: rgb(155, 155, 40);
/* oklch */ color: oklch(66.9% 0.132 109.5);
Tailwind
colors: {
  custom: {
    50: '#bcb86b',
    500: '#9b9b28',
    950: '#000000',
  },
}
SCSS
$custom: #9b9b28;
$custom-light: #bcb86b;
$custom-dark: #000000;
JSON
{
  "hex": "#9b9b28",
  "rgb": {
    "r": 155,
    "g": 155,
    "b": 40
  },
  "hsl": {
    "h": 60,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.66887,
    "c": 0.13162,
    "h": 109.5
  },
  "luminance": 0.30564
}

Semantic roles & 50–950 ramp

primary
#9B9B28
secondary
#6161BD
accent
#46E246
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#121107
muted
#81807A

Preview Lab

Preview with #9B9B28

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

Preview Lab → · Contrast checker → · Palette generator →

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