#AAA842#AAA842

#AAA842 is a light, vivid yellow. Relative luminance 0.369; OKLCH L 71.3% C 0.124 H 108.1°. Best body text is #000000 at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#AAA842
RGBrgb(170, 168, 66)
HSLhsl(59, 44%, 46%)
HSVhsv(59, 61%, 67%)
CMYKcmyk(0%, 1.2%, 61.2%, 33.3%)
CIE-LABlab(67.24, -12.53, 51.44)
CIE-LCHlch(67.24, 52.95, 103.68°)
OKLaboklab(71.32% -0.0384 0.1176)
OKLCHoklch(71.32% 0.124 108.1)
XYZxyz(31.5646, 36.9456, 10.6217)
Luminance0.3695 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AAA842 #4244AA
analogous
#AA7442 #AAA842 #78AA42
triadic
#AAA842 #42AAA8 #A842AA
tetradic
#AAA842 #42AA74 #4244AA #AA4278
square
#AAA842 #42AA74 #4244AA #AA4278
split-complementary
#AAA842 #4278AA #7442AA
monochromatic
#525120 #7E7C31 #AAA842 #C3C266 #D5D392

Accessibility & contrast

On white

2.50
#AAA842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.39
#AAA842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AAA842
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AAA842#FFFFFF#000000##000000
##AAA8421.002.508.398.39
#FFFFFF2.501.0021.0021.00
#0000008.3921.001.001.00
##0000008.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A236
Deuteranopia (green-blind)
#B7A548
Tritanopia (blue-blind)
#B59E92
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #aaa842;
/* rgb */ color: rgb(170, 168, 66);
/* oklch */ color: oklch(71.3% 0.124 108.1);
Tailwind
colors: {
  custom: {
    50: '#c6c17b',
    500: '#aaa842',
    950: '#000000',
  },
}
SCSS
$custom: #aaa842;
$custom-light: #c6c17b;
$custom-dark: #000000;
JSON
{
  "hex": "#aaa842",
  "rgb": {
    "r": 170,
    "g": 168,
    "b": 66
  },
  "hsl": {
    "h": 58.846,
    "s": 44.068,
    "l": 46.275
  },
  "oklch": {
    "l": 0.71323,
    "c": 0.12375,
    "h": 108.1
  },
  "luminance": 0.36945
}

Semantic roles & 50–950 ramp

primary
#AAA842
secondary
#8889C0
accent
#56D454
background
#FCFBF7
surface
#F8F7EE
border
#D1D0C9
text
#13120A
muted
#82817C

Preview Lab

Preview with #AAA842

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

Preview Lab → · Contrast checker → · Palette generator →

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