#AAA840#AAA840

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

Color values

HEX#AAA840
RGBrgb(170, 168, 64)
HSLhsl(59, 45%, 46%)
HSVhsv(59, 62%, 67%)
CMYKcmyk(0%, 1.2%, 62.4%, 33.3%)
CIE-LABlab(67.22, -12.66, 52.30)
CIE-LCHlch(67.22, 53.81, 103.61°)
OKLaboklab(71.3% -0.0391 0.1192)
OKLCHoklch(71.3% 0.125 108.1)
XYZxyz(31.5066, 36.9224, 10.3166)
Luminance0.3692 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AAA840 #4042AA
analogous
#AA7340 #AAA840 #77AA40
triadic
#AAA840 #40AAA8 #A840AA
tetradic
#AAA840 #40AA73 #4042AA #AA4077
square
#AAA840 #40AA73 #4042AA #AA4077
split-complementary
#AAA840 #4077AA #7340AA
monochromatic
#51501F #7E7C2F #AAA840 #C4C263 #D5D48F

Accessibility & contrast

On white

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

On black

8.38
#AAA840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AAA840
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AAA840#FFFFFF#000000##000000
##AAA8401.002.508.388.38
#FFFFFF2.501.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A233
Deuteranopia (green-blind)
#B7A546
Tritanopia (blue-blind)
#B69E92
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #aaa840;
/* rgb */ color: rgb(170, 168, 64);
/* oklch */ color: oklch(71.3% 0.125 108.1);
Tailwind
colors: {
  custom: {
    50: '#c6c17a',
    500: '#aaa840',
    950: '#000000',
  },
}
SCSS
$custom: #aaa840;
$custom-light: #c6c17a;
$custom-dark: #000000;
JSON
{
  "hex": "#aaa840",
  "rgb": {
    "r": 170,
    "g": 168,
    "b": 64
  },
  "hsl": {
    "h": 58.868,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.71303,
    "c": 0.1254,
    "h": 108.1
  },
  "luminance": 0.36921
}

Semantic roles & 50–950 ramp

primary
#AAA840
secondary
#8687C0
accent
#55D553
background
#FCFBF7
surface
#F8F7EE
border
#D1D0C9
text
#131209
muted
#82817B

Preview Lab

Preview with #AAA840

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

Preview Lab → · Contrast checker → · Palette generator →

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