#AAAF2F#AAAF2F

#AAAF2F is a light, vivid yellow. Relative luminance 0.394; OKLCH L 72.7% C 0.145 H 111.8°. Best body text is #000000 at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#AAAF2F
RGBrgb(170, 175, 47)
HSLhsl(62, 58%, 44%)
HSVhsv(62, 73%, 69%)
CMYKcmyk(2.9%, 0%, 73.1%, 31.4%)
CIE-LABlab(69.05, -17.23, 60.86)
CIE-LCHlch(69.05, 63.26, 105.81°)
OKLaboklab(72.73% -0.0536 0.1344)
OKLCHoklch(72.73% 0.145 111.8)
XYZxyz(32.4217, 39.4120, 8.5882)
Luminance0.3941 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AAAF2F #342FAF
analogous
#AF742F #AAAF2F #6AAF2F
triadic
#AAAF2F #2FAAAF #AF2FAA
tetradic
#AAAF2F #2FAF74 #342FAF #AF2F6A
square
#AAAF2F #2FAF74 #342FAF #AF2F6A
split-complementary
#AAAF2F #2F6AAF #742FAF
monochromatic
#4C4F15 #7B7F22 #AAAF2F #CACF4C #D8DC7C

Accessibility & contrast

On white

2.36
#AAAF2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.88
#AAAF2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AAAF2F
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AAAF2F#FFFFFF#000000##000000
##AAAF2F1.002.368.888.88
#FFFFFF2.361.0021.0021.00
#0000008.8821.001.001.00
##0000008.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA715
Deuteranopia (green-blind)
#BDAA39
Tritanopia (blue-blind)
#B6A496
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #aaaf2f;
/* rgb */ color: rgb(170, 175, 47);
/* oklch */ color: oklch(72.7% 0.145 111.8);
Tailwind
colors: {
  custom: {
    50: '#c7c671',
    500: '#aaaf2f',
    950: '#000000',
  },
}
SCSS
$custom: #aaaf2f;
$custom-light: #c7c671;
$custom-dark: #000000;
JSON
{
  "hex": "#aaaf2f",
  "rgb": {
    "r": 170,
    "g": 175,
    "b": 47
  },
  "hsl": {
    "h": 62.344,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.72726,
    "c": 0.14473,
    "h": 111.8
  },
  "luminance": 0.39411
}

Semantic roles & 50–950 ramp

primary
#AAAF2F
secondary
#7875C4
accent
#47E14D
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #AAAF2F

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

Preview Lab → · Contrast checker → · Palette generator →

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