#9B9826#9B9826

#9B9826 is a light, vivid yellow. Relative luminance 0.296; OKLCH L 66.2% C 0.130 H 107.9°. Best body text is #000000 at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#9B9826
RGBrgb(155, 152, 38)
HSLhsl(58, 61%, 38%)
HSVhsv(58, 75%, 61%)
CMYKcmyk(0%, 1.9%, 75.5%, 39.2%)
CIE-LABlab(61.28, -12.32, 56.22)
CIE-LCHlch(61.28, 57.55, 102.36°)
OKLaboklab(66.2% -0.0399 0.1235)
OKLCHoklch(66.2% 0.13 107.9)
XYZxyz(25.0966, 29.5658, 6.2181)
Luminance0.2957 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B9826 #26299B
analogous
#9B5E26 #9B9826 #639B26
triadic
#9B9826 #269B98 #98269B
tetradic
#9B9826 #269B5E #26299B #9B2663
square
#9B9826 #269B5E #26299B #9B2663
split-complementary
#9B9826 #26639B #5E269B
monochromatic
#39380E #6A681A #9B9826 #CCC832 #D9D663

Accessibility & contrast

On white

3.04
#9B9826 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.91
#9B9826 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B9826
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B9826#FFFFFF#000000##000000
##9B98261.003.046.916.91
#FFFFFF3.041.0021.0021.00
#0000006.9121.001.001.00
##0000006.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A5920D
Deuteranopia (green-blind)
#A7962F
Tritanopia (blue-blind)
#A78E82
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9b9826;
/* rgb */ color: rgb(155, 152, 38);
/* oklch */ color: oklch(66.2% 0.130 107.9);
Tailwind
colors: {
  custom: {
    50: '#bcb66a',
    500: '#9b9826',
    950: '#000000',
  },
}
SCSS
$custom: #9b9826;
$custom-light: #bcb66a;
$custom-dark: #000000;
JSON
{
  "hex": "#9b9826",
  "rgb": {
    "r": 155,
    "g": 152,
    "b": 38
  },
  "hsl": {
    "h": 58.462,
    "s": 60.622,
    "l": 37.843
  },
  "oklch": {
    "l": 0.66196,
    "c": 0.12977,
    "h": 107.9
  },
  "luminance": 0.29565
}

Semantic roles & 50–950 ramp

primary
#9B9826
secondary
#5F61BE
accent
#48E444
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #9B9826

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

Preview Lab → · Contrast checker → · Palette generator →

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