#AA9842#AA9842

#AA9842 is a light, moderate yellow. Relative luminance 0.314; OKLCH L 67.8% C 0.108 H 97.6°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#AA9842
RGBrgb(170, 152, 66)
HSLhsl(50, 44%, 46%)
HSVhsv(50, 61%, 67%)
CMYKcmyk(0%, 10.6%, 61.2%, 33.3%)
CIE-LABlab(62.84, -4.04, 46.62)
CIE-LCHlch(62.84, 46.79, 94.95°)
OKLaboklab(67.83% -0.0142 0.1074)
OKLCHoklch(67.83% 0.108 97.6)
XYZxyz(28.7903, 31.3972, 9.6970)
Luminance0.3140 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA9842 #4254AA
analogous
#AA6442 #AA9842 #88AA42
triadic
#AA9842 #42AA98 #9842AA
tetradic
#AA9842 #42AA64 #4254AA #AA4288
square
#AA9842 #42AA64 #4254AA #AA4288
split-complementary
#AA9842 #4288AA #6442AA
monochromatic
#524920 #7E7131 #AA9842 #C3B366 #D5C992

Accessibility & contrast

On white

2.88
#AA9842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.28
#AA9842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA9842
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA9842#FFFFFF#000000##000000
##AA98421.002.887.287.28
#FFFFFF2.881.0021.0021.00
#0000007.2821.001.001.00
##0000007.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69439
Deuteranopia (green-blind)
#AB9B46
Tritanopia (blue-blind)
#B78E85
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #aa9842;
/* rgb */ color: rgb(170, 152, 66);
/* oklch */ color: oklch(67.8% 0.108 97.6);
Tailwind
colors: {
  custom: {
    50: '#c6b67a',
    500: '#aa9842',
    950: '#000000',
  },
}
SCSS
$custom: #aa9842;
$custom-light: #c6b67a;
$custom-dark: #000000;
JSON
{
  "hex": "#aa9842",
  "rgb": {
    "r": 170,
    "g": 152,
    "b": 66
  },
  "hsl": {
    "h": 49.615,
    "s": 44.068,
    "l": 46.275
  },
  "oklch": {
    "l": 0.67831,
    "c": 0.1083,
    "h": 97.6
  },
  "luminance": 0.31396
}

Semantic roles & 50–950 ramp

primary
#AA9842
secondary
#8892C0
accent
#6AD454
background
#FCFBF7
surface
#F8F6EE
border
#D1D0C9
text
#131109
muted
#82807B

Preview Lab

Preview with #AA9842

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

Preview Lab → · Contrast checker → · Palette generator →

#AA9842 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva