#AFAE28#AFAE28

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

Color values

HEX#AFAE28
RGBrgb(175, 174, 40)
HSLhsl(60, 63%, 42%)
HSVhsv(60, 77%, 69%)
CMYKcmyk(0%, 0.6%, 77.1%, 31.4%)
CIE-LABlab(69.14, -14.86, 63.41)
CIE-LCHlch(69.14, 65.13, 103.19°)
OKLaboklab(72.89% -0.0479 0.1384)
OKLCHoklch(72.89% 0.146 109.1)
XYZxyz(33.1995, 39.5403, 7.8903)
Luminance0.3954 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAE28 #2829AF
analogous
#AF6B28 #AFAE28 #6CAF28
triadic
#AFAE28 #28AFAE #AE28AF
tetradic
#AFAE28 #28AF6B #2829AF #AF286C
square
#AFAE28 #28AF6B #2829AF #AF286C
split-complementary
#AFAE28 #286CAF #6B28AF
monochromatic
#4B4B11 #7D7C1D #AFAE28 #D4D241 #DFDE73

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAE28#FFFFFF#000000##000000
##AFAE281.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)
#BDA701
Deuteranopia (green-blind)
#BEAB33
Tritanopia (blue-blind)
#BCA295
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afae28;
/* rgb */ color: rgb(175, 174, 40);
/* oklch */ color: oklch(72.9% 0.146 109.1);
Tailwind
colors: {
  custom: {
    50: '#cbc56e',
    500: '#afae28',
    950: '#000000',
  },
}
SCSS
$custom: #afae28;
$custom-light: #cbc56e;
$custom-dark: #000000;
JSON
{
  "hex": "#afae28",
  "rgb": {
    "r": 175,
    "g": 174,
    "b": 40
  },
  "hsl": {
    "h": 59.556,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.72888,
    "c": 0.14643,
    "h": 109.1
  },
  "luminance": 0.39539
}

Semantic roles & 50–950 ramp

primary
#AFAE28
secondary
#6D6DC6
accent
#43E642
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAE28

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

Preview Lab → · Contrast checker → · Palette generator →

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