#9A802B#9A802B

#9A802B is a mid, moderate yellow. Relative luminance 0.225; OKLCH L 60.8% C 0.106 H 91.6°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#9A802B
RGBrgb(154, 128, 43)
HSLhsl(46, 56%, 39%)
HSVhsv(46, 72%, 60%)
CMYKcmyk(0%, 16.9%, 72.1%, 39.6%)
CIE-LABlab(54.54, 0.53, 47.71)
CIE-LCHlch(54.54, 47.72, 89.36°)
OKLaboklab(60.83% -0.0029 0.1065)
OKLCHoklch(60.83% 0.106 91.6)
XYZxyz(21.4828, 22.4840, 5.4934)
Luminance0.2248 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A802B #2B459A
analogous
#9A482B #9A802B #7C9A2B
triadic
#9A802B #2B9A80 #802B9A
tetradic
#9A802B #2B9A48 #2B459A #9A2B7C
square
#9A802B #2B9A48 #2B459A #9A2B7C
split-complementary
#9A802B #2B7C9A #482B9A
monochromatic
#3A3010 #6A581E #9A802B #C8A73A #D5BC6A

Accessibility & contrast

On white

3.82
#9A802B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#9A802B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A802B
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A802B#FFFFFF#000000##000000
##9A802B1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E1F
Deuteranopia (green-blind)
#95862F
Tritanopia (blue-blind)
#A7756F
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9a802b;
/* rgb */ color: rgb(154, 128, 43);
/* oklch */ color: oklch(60.8% 0.106 91.6);
Tailwind
colors: {
  custom: {
    50: '#bba46a',
    500: '#9a802b',
    950: '#000000',
  },
}
SCSS
$custom: #9a802b;
$custom-light: #bba46a;
$custom-dark: #000000;
JSON
{
  "hex": "#9a802b",
  "rgb": {
    "r": 154,
    "g": 128,
    "b": 43
  },
  "hsl": {
    "h": 45.946,
    "s": 56.345,
    "l": 38.627
  },
  "oklch": {
    "l": 0.60834,
    "c": 0.10649,
    "h": 91.6
  },
  "luminance": 0.22483
}

Semantic roles & 50–950 ramp

primary
#9A802B
secondary
#6579BC
accent
#6CE048
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #9A802B

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

Preview Lab → · Contrast checker → · Palette generator →

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