#9B9E28#9B9E28

#9B9E28 is a light, vivid yellow. Relative luminance 0.316; OKLCH L 67.6% C 0.135 H 111.0°. Best body text is #000000 at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#9B9E28
RGBrgb(155, 158, 40)
HSLhsl(62, 60%, 39%)
HSVhsv(62, 75%, 62%)
CMYKcmyk(1.9%, 0%, 74.7%, 38%)
CIE-LABlab(62.99, -15.37, 57.13)
CIE-LCHlch(62.99, 59.16, 105.06°)
OKLaboklab(67.57% -0.0483 0.1258)
OKLCHoklch(67.57% 0.135 111)
XYZxyz(26.1283, 31.5762, 6.7255)
Luminance0.3157 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B9E28 #2B289E
analogous
#9E6628 #9B9E28 #609E28
triadic
#9B9E28 #289B9E #9E289B
tetradic
#9B9E28 #289E66 #2B289E #9E2860
square
#9B9E28 #289E66 #2B289E #9E2860
split-complementary
#9B9E28 #28609E #66289E
monochromatic
#3B3C0F #6B6D1C #9B9E28 #C9CC37 #D6D968

Accessibility & contrast

On white

2.87
#9B9E28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.31
#9B9E28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9B9E28
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B9E28#FFFFFF#000000##000000
##9B9E281.002.877.317.31
#FFFFFF2.871.0021.0021.00
#0000007.3121.001.001.00
##0000007.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB970F
Deuteranopia (green-blind)
#AB9A32
Tritanopia (blue-blind)
#A69488
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #9b9e28;
/* rgb */ color: rgb(155, 158, 40);
/* oklch */ color: oklch(67.6% 0.135 111.0);
Tailwind
colors: {
  custom: {
    50: '#bcba6b',
    500: '#9b9e28',
    950: '#000000',
  },
}
SCSS
$custom: #9b9e28;
$custom-light: #bcba6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9b9e28",
  "rgb": {
    "r": 155,
    "g": 158,
    "b": 40
  },
  "hsl": {
    "h": 61.525,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.67568,
    "c": 0.13472,
    "h": 111
  },
  "luminance": 0.31575
}

Semantic roles & 50–950 ramp

primary
#9B9E28
secondary
#6563BF
accent
#45E349
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#121107
muted
#81807A

Preview Lab

Preview with #9B9E28

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

Preview Lab → · Contrast checker → · Palette generator →

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