#9B802F#9B802F

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

Color values

HEX#9B802F
RGBrgb(155, 128, 47)
HSLhsl(45, 53%, 40%)
HSVhsv(45, 70%, 61%)
CMYKcmyk(0%, 17.4%, 69.7%, 39.2%)
CIE-LABlab(54.67, 1.21, 46.13)
CIE-LCHlch(54.67, 46.15, 88.49°)
OKLaboklab(60.98% -0.0005 0.1038)
OKLCHoklch(60.98% 0.104 90.3)
XYZxyz(21.7510, 22.6134, 5.9079)
Luminance0.2261 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B802F #2F4A9B
analogous
#9B4A2F #9B802F #809B2F
triadic
#9B802F #2F9B80 #802F9B
tetradic
#9B802F #2F9B4A #2F4A9B #9B2F80
square
#9B802F #2F9B4A #2F4A9B #9B2F80
split-complementary
#9B802F #2F809B #4A2F9B
monochromatic
#3D3213 #6C5921 #9B802F #C6A542 #D4BB71

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B802F#FFFFFF#000000##000000
##9B802F1.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)
#8E7E25
Deuteranopia (green-blind)
#958633
Tritanopia (blue-blind)
#A8756F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9b802f;
/* rgb */ color: rgb(155, 128, 47);
/* oklch */ color: oklch(61.0% 0.104 90.3);
Tailwind
colors: {
  custom: {
    50: '#bca46c',
    500: '#9b802f',
    950: '#000000',
  },
}
SCSS
$custom: #9b802f;
$custom-light: #bca46c;
$custom-dark: #000000;
JSON
{
  "hex": "#9b802f",
  "rgb": {
    "r": 155,
    "g": 128,
    "b": 47
  },
  "hsl": {
    "h": 45,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.60975,
    "c": 0.10381,
    "h": 90.3
  },
  "luminance": 0.22612
}

Semantic roles & 50–950 ramp

primary
#9B802F
secondary
#6A7FBB
accent
#6FDD4B
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #9B802F

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

Preview Lab → · Contrast checker → · Palette generator →

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