#AA9840#AA9840

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

Color values

HEX#AA9840
RGBrgb(170, 152, 64)
HSLhsl(50, 45%, 46%)
HSVhsv(50, 62%, 67%)
CMYKcmyk(0%, 10.6%, 62.4%, 33.3%)
CIE-LABlab(62.82, -4.18, 47.53)
CIE-LCHlch(62.82, 47.72, 95.03°)
OKLaboklab(67.81% -0.0149 0.109)
OKLCHoklch(67.81% 0.11 97.8)
XYZxyz(28.7324, 31.3740, 9.3918)
Luminance0.3137 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA9840 #4052AA
analogous
#AA6340 #AA9840 #87AA40
triadic
#AA9840 #40AA98 #9840AA
tetradic
#AA9840 #40AA63 #4052AA #AA4087
square
#AA9840 #40AA63 #4052AA #AA4087
split-complementary
#AA9840 #4087AA #6340AA
monochromatic
#51481F #7E702F #AA9840 #C4B463 #D5C98F

Accessibility & contrast

On white

2.89
#AA9840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.27
#AA9840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA9840
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA9840#FFFFFF#000000##000000
##AA98401.002.897.277.27
#FFFFFF2.891.0021.0021.00
#0000007.2721.001.001.00
##0000007.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69436
Deuteranopia (green-blind)
#AB9B44
Tritanopia (blue-blind)
#B78D85
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #aa9840;
/* rgb */ color: rgb(170, 152, 64);
/* oklch */ color: oklch(67.8% 0.110 97.8);
Tailwind
colors: {
  custom: {
    50: '#c6b678',
    500: '#aa9840',
    950: '#000000',
  },
}
SCSS
$custom: #aa9840;
$custom-light: #c6b678;
$custom-dark: #000000;
JSON
{
  "hex": "#aa9840",
  "rgb": {
    "r": 170,
    "g": 152,
    "b": 64
  },
  "hsl": {
    "h": 49.811,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.67809,
    "c": 0.11004,
    "h": 97.8
  },
  "luminance": 0.31373
}

Semantic roles & 50–950 ramp

primary
#AA9840
secondary
#8690C0
accent
#69D553
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131109
muted
#82807B

Preview Lab

Preview with #AA9840

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

Preview Lab → · Contrast checker → · Palette generator →

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