#AAA240#AAA240

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

Color values

HEX#AAA240
RGBrgb(170, 162, 64)
HSLhsl(55, 45%, 46%)
HSVhsv(55, 62%, 67%)
CMYKcmyk(0%, 4.7%, 62.4%, 33.3%)
CIE-LABlab(65.56, -9.52, 50.52)
CIE-LCHlch(65.56, 51.41, 100.67°)
OKLaboklab(69.98% -0.0301 0.1154)
OKLCHoklch(69.98% 0.119 104.6)
XYZxyz(30.4244, 34.7579, 9.9558)
Luminance0.3476 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AAA240 #4048AA
analogous
#AA6D40 #AAA240 #7DAA40
triadic
#AAA240 #40AAA2 #A240AA
tetradic
#AAA240 #40AA6D #4048AA #AA407D
square
#AAA240 #40AA6D #4048AA #AA407D
split-complementary
#AAA240 #407DAA #6D40AA
monochromatic
#514D1F #7E782F #AAA240 #C4BD63 #D5D08F

Accessibility & contrast

On white

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

On black

7.95
#AAA240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AAA240
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AAA240#FFFFFF#000000##000000
##AAA2401.002.647.957.95
#FFFFFF2.641.0021.0021.00
#0000007.9521.001.001.00
##0000007.9521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #aaa240;
/* rgb */ color: rgb(170, 162, 64);
/* oklch */ color: oklch(70.0% 0.119 104.6);
Tailwind
colors: {
  custom: {
    50: '#c6bd79',
    500: '#aaa240',
    950: '#000000',
  },
}
SCSS
$custom: #aaa240;
$custom-light: #c6bd79;
$custom-dark: #000000;
JSON
{
  "hex": "#aaa240",
  "rgb": {
    "r": 170,
    "g": 162,
    "b": 64
  },
  "hsl": {
    "h": 55.472,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.69982,
    "c": 0.11925,
    "h": 104.6
  },
  "luminance": 0.34757
}

Semantic roles & 50–950 ramp

primary
#AAA240
secondary
#868AC0
accent
#5DD553
background
#FCFBF7
surface
#F8F6EE
border
#D1D0C9
text
#131209
muted
#82817B

Preview Lab

Preview with #AAA240

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

Preview Lab → · Contrast checker → · Palette generator →

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