#9B802D#9B802D

#9B802D is a mid, moderate yellow. Relative luminance 0.226; OKLCH L 61.0% C 0.105 H 90.6°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#9B802D
RGBrgb(155, 128, 45)
HSLhsl(45, 55%, 39%)
HSVhsv(45, 71%, 61%)
CMYKcmyk(0%, 17.4%, 71%, 39.2%)
CIE-LABlab(54.66, 1.10, 47.00)
CIE-LCHlch(54.66, 47.01, 88.66°)
OKLaboklab(60.96% -0.0011 0.1053)
OKLCHoklch(60.96% 0.105 90.6)
XYZxyz(21.7116, 22.5977, 5.7003)
Luminance0.2260 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B802D #2D489B
analogous
#9B492D #9B802D #7F9B2D
triadic
#9B802D #2D9B80 #802D9B
tetradic
#9B802D #2D9B49 #2D489B #9B2D7F
square
#9B802D #2D9B49 #2D489B #9B2D7F
split-complementary
#9B802D #2D7F9B #492D9B
monochromatic
#3C3211 #6C591F #9B802D #C7A53E #D5BB6E

Accessibility & contrast

On white

3.80
#9B802D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#9B802D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B802D
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B802D#FFFFFF#000000##000000
##9B802D1.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E22
Deuteranopia (green-blind)
#958631
Tritanopia (blue-blind)
#A8756F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9b802d;
/* rgb */ color: rgb(155, 128, 45);
/* oklch */ color: oklch(61.0% 0.105 90.6);
Tailwind
colors: {
  custom: {
    50: '#bca46b',
    500: '#9b802d',
    950: '#000000',
  },
}
SCSS
$custom: #9b802d;
$custom-light: #bca46b;
$custom-dark: #000000;
JSON
{
  "hex": "#9b802d",
  "rgb": {
    "r": 155,
    "g": 128,
    "b": 45
  },
  "hsl": {
    "h": 45.273,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.60956,
    "c": 0.1053,
    "h": 90.6
  },
  "luminance": 0.22596
}

Semantic roles & 50–950 ramp

primary
#9B802D
secondary
#687DBC
accent
#6EDE49
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #9B802D

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

Preview Lab → · Contrast checker → · Palette generator →

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