#AFAE23#AFAE23

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

Color values

HEX#AFAE23
RGBrgb(175, 174, 35)
HSLhsl(60, 67%, 41%)
HSVhsv(60, 80%, 69%)
CMYKcmyk(0%, 0.6%, 80%, 31.4%)
CIE-LABlab(69.12, -15.04, 64.88)
CIE-LCHlch(69.12, 66.60, 103.05°)
OKLaboklab(72.86% -0.0488 0.1406)
OKLCHoklch(72.86% 0.149 109.1)
XYZxyz(33.1199, 39.5085, 7.4710)
Luminance0.3951 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAE23 #2324AF
analogous
#AF6823 #AFAE23 #6AAF23
triadic
#AFAE23 #23AFAE #AE23AF
tetradic
#AFAE23 #23AF68 #2324AF #AF236A
square
#AFAE23 #23AF68 #2324AF #AF236A
split-complementary
#AFAE23 #236AAF #6823AF
monochromatic
#49490F #7C7B19 #AFAE23 #D7D638 #E1E16B

Accessibility & contrast

On white

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

On black

8.90
#AFAE23 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAE23
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAE23#FFFFFF#000000##000000
##AFAE231.002.368.908.90
#FFFFFF2.361.0021.0021.00
#0000008.9021.001.001.00
##0000008.9021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afae23;
/* rgb */ color: rgb(175, 174, 35);
/* oklch */ color: oklch(72.9% 0.149 109.1);
Tailwind
colors: {
  custom: {
    50: '#cbc56c',
    500: '#afae23',
    950: '#000000',
  },
}
SCSS
$custom: #afae23;
$custom-light: #cbc56c;
$custom-dark: #000000;
JSON
{
  "hex": "#afae23",
  "rgb": {
    "r": 175,
    "g": 174,
    "b": 35
  },
  "hsl": {
    "h": 59.571,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.72862,
    "c": 0.14881,
    "h": 109.1
  },
  "luminance": 0.39507
}

Semantic roles & 50–950 ramp

primary
#AFAE23
secondary
#6667C7
accent
#3FEA3E
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFAE23

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

Preview Lab → · Contrast checker → · Palette generator →

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