#AAA242#AAA242

#AAA242 is a light, moderate yellow. Relative luminance 0.348; OKLCH L 70.0% C 0.118 H 104.5°. Best body text is #000000 at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#AAA242
RGBrgb(170, 162, 66)
HSLhsl(55, 44%, 46%)
HSVhsv(55, 61%, 67%)
CMYKcmyk(0%, 4.7%, 61.2%, 33.3%)
CIE-LABlab(65.58, -9.38, 49.64)
CIE-LCHlch(65.58, 50.52, 100.70°)
OKLaboklab(70% -0.0295 0.1138)
OKLCHoklch(70% 0.118 104.5)
XYZxyz(30.4823, 34.7811, 10.2610)
Luminance0.3478 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AAA242 #424AAA
analogous
#AA6E42 #AAA242 #7EAA42
triadic
#AAA242 #42AAA2 #A242AA
tetradic
#AAA242 #42AA6E #424AAA #AA427E
square
#AAA242 #42AA6E #424AAA #AA427E
split-complementary
#AAA242 #427EAA #6E42AA
monochromatic
#524E20 #7E7831 #AAA242 #C3BC66 #D5CF92

Accessibility & contrast

On white

2.64
#AAA242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.96
#AAA242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AAA242
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AAA242#FFFFFF#000000##000000
##AAA2421.002.647.967.96
#FFFFFF2.641.0021.0021.00
#0000007.9621.001.001.00
##0000007.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9D37
Deuteranopia (green-blind)
#B2A147
Tritanopia (blue-blind)
#B6988D
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #aaa242;
/* rgb */ color: rgb(170, 162, 66);
/* oklch */ color: oklch(70.0% 0.118 104.5);
Tailwind
colors: {
  custom: {
    50: '#c6bd7a',
    500: '#aaa242',
    950: '#000000',
  },
}
SCSS
$custom: #aaa242;
$custom-light: #c6bd7a;
$custom-dark: #000000;
JSON
{
  "hex": "#aaa242",
  "rgb": {
    "r": 170,
    "g": 162,
    "b": 66
  },
  "hsl": {
    "h": 55.385,
    "s": 44.068,
    "l": 46.275
  },
  "oklch": {
    "l": 0.70003,
    "c": 0.11757,
    "h": 104.5
  },
  "luminance": 0.3478
}

Semantic roles & 50–950 ramp

primary
#AAA242
secondary
#888CC0
accent
#5ED454
background
#FCFBF7
surface
#F8F6EE
border
#D1D0C9
text
#131209
muted
#82817B

Preview Lab

Preview with #AAA242

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

Preview Lab → · Contrast checker → · Palette generator →

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