#9B902B#9B902B

#9B902B is a light, moderate yellow. Relative luminance 0.271; OKLCH L 64.4% C 0.119 H 103.0°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#9B902B
RGBrgb(155, 144, 43)
HSLhsl(54, 57%, 39%)
HSVhsv(54, 72%, 61%)
CMYKcmyk(0%, 7.1%, 72.3%, 39.2%)
CIE-LABlab(59.06, -7.81, 52.25)
CIE-LCHlch(59.06, 52.83, 98.51°)
OKLaboklab(64.44% -0.0268 0.116)
OKLCHoklch(64.44% 0.119 103)
XYZxyz(23.9279, 27.0905, 6.2536)
Luminance0.2709 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B902B #2B369B
analogous
#9B582B #9B902B #6E9B2B
triadic
#9B902B #2B9B90 #902B9B
tetradic
#9B902B #2B9B58 #2B369B #9B2B6E
square
#9B902B #2B9B58 #2B369B #9B2B6E
split-complementary
#9B902B #2B6E9B #582B9B
monochromatic
#3B3710 #6B631E #9B902B #C9BB3B #D6CB6B

Accessibility & contrast

On white

3.27
#9B902B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#9B902B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B902B
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B902B#FFFFFF#000000##000000
##9B902B1.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B1B
Deuteranopia (green-blind)
#A19032
Tritanopia (blue-blind)
#A7867C
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9b902b;
/* rgb */ color: rgb(155, 144, 43);
/* oklch */ color: oklch(64.4% 0.119 103.0);
Tailwind
colors: {
  custom: {
    50: '#bcb06b',
    500: '#9b902b',
    950: '#000000',
  },
}
SCSS
$custom: #9b902b;
$custom-light: #bcb06b;
$custom-dark: #000000;
JSON
{
  "hex": "#9b902b",
  "rgb": {
    "r": 155,
    "g": 144,
    "b": 43
  },
  "hsl": {
    "h": 54.107,
    "s": 56.566,
    "l": 38.824
  },
  "oklch": {
    "l": 0.64438,
    "c": 0.11905,
    "h": 103
  },
  "luminance": 0.27089
}

Semantic roles & 50–950 ramp

primary
#9B902B
secondary
#656EBC
accent
#57E048
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9B902B

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

Preview Lab → · Contrast checker → · Palette generator →

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