#AAAF27#AAAF27

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

Color values

HEX#AAAF27
RGBrgb(170, 175, 39)
HSLhsl(62, 64%, 42%)
HSVhsv(62, 78%, 69%)
CMYKcmyk(2.9%, 0%, 77.7%, 31.4%)
CIE-LABlab(69.01, -17.58, 63.45)
CIE-LCHlch(69.01, 65.84, 105.49°)
OKLaboklab(72.68% -0.0553 0.1385)
OKLCHoklch(72.68% 0.149 111.8)
XYZxyz(32.2749, 39.3533, 7.8149)
Luminance0.3935 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AAAF27 #2C27AF
analogous
#AF7027 #AAAF27 #66AF27
triadic
#AAAF27 #27AAAF #AF27AA
tetradic
#AAAF27 #27AF70 #2C27AF #AF2766
square
#AAAF27 #27AF70 #2C27AF #AF2766
split-complementary
#AAAF27 #2766AF #7027AF
monochromatic
#494B11 #797D1C #AAAF27 #CFD43F #DBDF71

Accessibility & contrast

On white

2.37
#AAAF27 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.87
#AAAF27 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AAAF27
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AAAF27#FFFFFF#000000##000000
##AAAF271.002.378.878.87
#FFFFFF2.371.0021.0021.00
#0000008.8721.001.001.00
##0000008.8721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #aaaf27;
/* rgb */ color: rgb(170, 175, 39);
/* oklch */ color: oklch(72.7% 0.149 111.8);
Tailwind
colors: {
  custom: {
    50: '#c7c66d',
    500: '#aaaf27',
    950: '#000000',
  },
}
SCSS
$custom: #aaaf27;
$custom-light: #c7c66d;
$custom-dark: #000000;
JSON
{
  "hex": "#aaaf27",
  "rgb": {
    "r": 170,
    "g": 175,
    "b": 39
  },
  "hsl": {
    "h": 62.206,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.72679,
    "c": 0.14908,
    "h": 111.8
  },
  "luminance": 0.39352
}

Semantic roles & 50–950 ramp

primary
#AAAF27
secondary
#6F6BC6
accent
#41E747
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141308
muted
#82827A

Preview Lab

Preview with #AAAF27

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

Preview Lab → · Contrast checker → · Palette generator →

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