#AFAA28#AFAA28

#AFAA28 is a light, vivid yellow. Relative luminance 0.380; OKLCH L 72.0% C 0.143 H 107.2°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#AFAA28
RGBrgb(175, 170, 40)
HSLhsl(58, 63%, 42%)
HSVhsv(58, 77%, 69%)
CMYKcmyk(0%, 2.9%, 77.1%, 31.4%)
CIE-LABlab(68.03, -12.80, 62.41)
CIE-LCHlch(68.03, 63.71, 101.59°)
OKLaboklab(72% -0.0422 0.1362)
OKLCHoklch(72% 0.143 107.2)
XYZxyz(32.4382, 38.0178, 7.6365)
Luminance0.3802 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA28 #282DAF
analogous
#AF6728 #AFAA28 #70AF28
triadic
#AFAA28 #28AFAA #AA28AF
tetradic
#AFAA28 #28AF67 #282DAF #AF2870
square
#AFAA28 #28AF67 #282DAF #AF2870
split-complementary
#AFAA28 #2870AF #6728AF
monochromatic
#4B4911 #7D7A1D #AFAA28 #D4CE41 #DFDB73

Accessibility & contrast

On white

2.44
#AFAA28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.60
#AFAA28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA28
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA28#FFFFFF#000000##000000
##AFAA281.002.448.608.60
#FFFFFF2.441.0021.0021.00
#0000008.6021.001.001.00
##0000008.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A304
Deuteranopia (green-blind)
#BBA833
Tritanopia (blue-blind)
#BC9E92
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa28;
/* rgb */ color: rgb(175, 170, 40);
/* oklch */ color: oklch(72.0% 0.143 107.2);
Tailwind
colors: {
  custom: {
    50: '#cbc36d',
    500: '#afaa28',
    950: '#000000',
  },
}
SCSS
$custom: #afaa28;
$custom-light: #cbc36d;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa28",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 40
  },
  "hsl": {
    "h": 57.778,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.72004,
    "c": 0.1426,
    "h": 107.2
  },
  "luminance": 0.38017
}

Semantic roles & 50–950 ramp

primary
#AFAA28
secondary
#6D70C6
accent
#48E642
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAA28

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

Preview Lab → · Contrast checker → · Palette generator →

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