#9B9927#9B9927

#9B9927 is a light, vivid yellow. Relative luminance 0.299; OKLCH L 66.4% C 0.130 H 108.4°. Best body text is #000000 at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#9B9927
RGBrgb(155, 153, 39)
HSLhsl(59, 60%, 38%)
HSVhsv(59, 75%, 61%)
CMYKcmyk(0%, 1.3%, 74.8%, 39.2%)
CIE-LABlab(61.57, -12.80, 56.14)
CIE-LCHlch(61.57, 57.58, 102.85°)
OKLaboklab(66.43% -0.0412 0.1235)
OKLCHoklch(66.43% 0.13 108.4)
XYZxyz(25.2760, 29.8983, 6.3586)
Luminance0.2990 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B9927 #27299B
analogous
#9B5F27 #9B9927 #639B27
triadic
#9B9927 #279B99 #99279B
tetradic
#9B9927 #279B5F #27299B #9B2763
square
#9B9927 #279B5F #27299B #9B2763
split-complementary
#9B9927 #27639B #5F279B
monochromatic
#39380E #6A691B #9B9927 #CCC933 #D8D664

Accessibility & contrast

On white

3.01
#9B9927 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.98
#9B9927 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B9927
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B9927#FFFFFF#000000##000000
##9B99271.003.016.986.98
#FFFFFF3.011.0021.0021.00
#0000006.9821.001.001.00
##0000006.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A6930F
Deuteranopia (green-blind)
#A89630
Tritanopia (blue-blind)
#A68F83
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #9b9927;
/* rgb */ color: rgb(155, 153, 39);
/* oklch */ color: oklch(66.4% 0.130 108.4);
Tailwind
colors: {
  custom: {
    50: '#bcb66a',
    500: '#9b9927',
    950: '#000000',
  },
}
SCSS
$custom: #9b9927;
$custom-light: #bcb66a;
$custom-dark: #000000;
JSON
{
  "hex": "#9b9927",
  "rgb": {
    "r": 155,
    "g": 153,
    "b": 39
  },
  "hsl": {
    "h": 58.966,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.66428,
    "c": 0.13019,
    "h": 108.4
  },
  "luminance": 0.29898
}

Semantic roles & 50–950 ramp

primary
#9B9927
secondary
#6062BE
accent
#48E345
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#121107
muted
#81807A

Preview Lab

Preview with #9B9927

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

Preview Lab → · Contrast checker → · Palette generator →

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