#9B9942#9B9942

#9B9942 is a light, moderate yellow. Relative luminance 0.301; OKLCH L 66.7% C 0.110 H 107.8°. Best body text is #000000 at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#9B9942
RGBrgb(155, 153, 66)
HSLhsl(59, 40%, 43%)
HSVhsv(59, 57%, 61%)
CMYKcmyk(0%, 1.3%, 57.4%, 39.2%)
CIE-LABlab(61.78, -11.13, 45.06)
CIE-LCHlch(61.78, 46.42, 103.87°)
OKLaboklab(66.67% -0.0336 0.1044)
OKLCHoklch(66.67% 0.11 107.8)
XYZxyz(25.8929, 30.1451, 9.6078)
Luminance0.3014 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B9942 #42449B
analogous
#9B6C42 #9B9942 #709B42
triadic
#9B9942 #429B99 #99429B
tetradic
#9B9942 #429B6C #42449B #9B4270
square
#9B9942 #429B6C #42449B #9B4270
split-complementary
#9B9942 #42709B #6C429B
monochromatic
#45441D #706F30 #9B9942 #BBB95F #CDCC8A

Accessibility & contrast

On white

2.99
#9B9942 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.03
#9B9942 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9B9942
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B9942#FFFFFF#000000##000000
##9B99421.002.997.037.03
#FFFFFF2.991.0021.0021.00
#0000007.0321.001.001.00
##0000007.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59339
Deuteranopia (green-blind)
#A69747
Tritanopia (blue-blind)
#A59086
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #9b9942;
/* rgb */ color: rgb(155, 153, 66);
/* oklch */ color: oklch(66.7% 0.110 107.8);
Tailwind
colors: {
  custom: {
    50: '#bbb67a',
    500: '#9b9942',
    950: '#000000',
  },
}
SCSS
$custom: #9b9942;
$custom-light: #bbb67a;
$custom-dark: #000000;
JSON
{
  "hex": "#9b9942",
  "rgb": {
    "r": 155,
    "g": 153,
    "b": 66
  },
  "hsl": {
    "h": 58.652,
    "s": 40.271,
    "l": 43.333
  },
  "oklch": {
    "l": 0.66666,
    "c": 0.10964,
    "h": 107.8
  },
  "luminance": 0.30144
}

Semantic roles & 50–950 ramp

primary
#9B9942
secondary
#8182B8
accent
#5AD058
background
#FBFBF7
surface
#F7F6EE
border
#D0D0C9
text
#121109
muted
#81807B

Preview Lab

Preview with #9B9942

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

Preview Lab → · Contrast checker → · Palette generator →

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