#9A802F#9A802F

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

Color values

HEX#9A802F
RGBrgb(154, 128, 47)
HSLhsl(45, 53%, 39%)
HSVhsv(45, 69%, 60%)
CMYKcmyk(0%, 16.9%, 69.5%, 39.6%)
CIE-LABlab(54.57, 0.76, 45.99)
CIE-LCHlch(54.57, 46.00, 89.06°)
OKLaboklab(60.87% -0.0018 0.1036)
OKLCHoklch(60.87% 0.104 91)
XYZxyz(21.5598, 22.5149, 5.8990)
Luminance0.2251 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A802F #2F499A
analogous
#9A4B2F #9A802F #7F9A2F
triadic
#9A802F #2F9A80 #802F9A
tetradic
#9A802F #2F9A4B #2F499A #9A2F7F
square
#9A802F #2F9A4B #2F499A #9A2F7F
split-complementary
#9A802F #2F7F9A #4B2F9A
monochromatic
#3C3212 #6B5921 #9A802F #C5A541 #D3BB70

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9A802F#FFFFFF#000000##000000
##9A802F1.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)
#8E7E25
Deuteranopia (green-blind)
#948633
Tritanopia (blue-blind)
#A7766F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9a802f;
/* rgb */ color: rgb(154, 128, 47);
/* oklch */ color: oklch(60.9% 0.104 91.0);
Tailwind
colors: {
  custom: {
    50: '#bba46c',
    500: '#9a802f',
    950: '#000000',
  },
}
SCSS
$custom: #9a802f;
$custom-light: #bba46c;
$custom-dark: #000000;
JSON
{
  "hex": "#9a802f",
  "rgb": {
    "r": 154,
    "g": 128,
    "b": 47
  },
  "hsl": {
    "h": 45.421,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.6087,
    "c": 0.10357,
    "h": 91
  },
  "luminance": 0.22514
}

Semantic roles & 50–950 ramp

primary
#9A802F
secondary
#6A7EBB
accent
#6FDD4B
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #9A802F

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

Preview Lab → · Contrast checker → · Palette generator →

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