#AFAE27#AFAE27

#AFAE27 is a light, vivid yellow. Relative luminance 0.395; OKLCH L 72.9% C 0.147 H 109.1°. Best body text is #000000 at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#AFAE27
RGBrgb(175, 174, 39)
HSLhsl(60, 64%, 42%)
HSVhsv(60, 78%, 69%)
CMYKcmyk(0%, 0.6%, 77.7%, 31.4%)
CIE-LABlab(69.14, -14.90, 63.72)
CIE-LCHlch(69.14, 65.43, 103.16°)
OKLaboklab(72.88% -0.0481 0.1388)
OKLCHoklch(72.88% 0.147 109.1)
XYZxyz(33.1827, 39.5336, 7.8019)
Luminance0.3953 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAE27 #2728AF
analogous
#AF6A27 #AFAE27 #6CAF27
triadic
#AFAE27 #27AFAE #AE27AF
tetradic
#AFAE27 #27AF6A #2728AF #AF276C
square
#AFAE27 #27AF6A #2728AF #AF276C
split-complementary
#AFAE27 #276CAF #6A27AF
monochromatic
#4B4A11 #7D7C1C #AFAE27 #D4D33F #DFDF71

Accessibility & contrast

On white

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

On black

8.91
#AFAE27 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAE27
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAE27#FFFFFF#000000##000000
##AFAE271.002.368.918.91
#FFFFFF2.361.0021.0021.00
#0000008.9121.001.001.00
##0000008.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA700
Deuteranopia (green-blind)
#BEAB33
Tritanopia (blue-blind)
#BCA295
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afae27;
/* rgb */ color: rgb(175, 174, 39);
/* oklch */ color: oklch(72.9% 0.147 109.1);
Tailwind
colors: {
  custom: {
    50: '#cbc56d',
    500: '#afae27',
    950: '#000000',
  },
}
SCSS
$custom: #afae27;
$custom-light: #cbc56d;
$custom-dark: #000000;
JSON
{
  "hex": "#afae27",
  "rgb": {
    "r": 175,
    "g": 174,
    "b": 39
  },
  "hsl": {
    "h": 59.559,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.72883,
    "c": 0.14692,
    "h": 109.1
  },
  "luminance": 0.39533
}

Semantic roles & 50–950 ramp

primary
#AFAE27
secondary
#6B6CC6
accent
#42E741
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAE27

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

Preview Lab → · Contrast checker → · Palette generator →

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