#AFAD28#AFAD28

#AFAD28 is a light, vivid yellow. Relative luminance 0.392; OKLCH L 72.7% C 0.145 H 108.6°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#AFAD28
RGBrgb(175, 173, 40)
HSLhsl(59, 63%, 42%)
HSVhsv(59, 77%, 69%)
CMYKcmyk(0%, 1.1%, 77.1%, 31.4%)
CIE-LABlab(68.86, -14.34, 63.16)
CIE-LCHlch(68.86, 64.77, 102.80°)
OKLaboklab(72.67% -0.0465 0.1378)
OKLCHoklch(72.67% 0.145 108.6)
XYZxyz(33.0071, 39.1554, 7.8261)
Luminance0.3915 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAD28 #282AAF
analogous
#AF6A28 #AFAD28 #6EAF28
triadic
#AFAD28 #28AFAD #AD28AF
tetradic
#AFAD28 #28AF6A #282AAF #AF286E
square
#AFAD28 #28AF6A #282AAF #AF286E
split-complementary
#AFAD28 #286EAF #6A28AF
monochromatic
#4B4B11 #7D7C1D #AFAD28 #D4D141 #DFDD73

Accessibility & contrast

On white

2.38
#AFAD28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.83
#AFAD28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAD28
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAD28#FFFFFF#000000##000000
##AFAD281.002.388.838.83
#FFFFFF2.381.0021.0021.00
#0000008.8321.001.001.00
##0000008.8321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afad28;
/* rgb */ color: rgb(175, 173, 40);
/* oklch */ color: oklch(72.7% 0.145 108.6);
Tailwind
colors: {
  custom: {
    50: '#cbc56e',
    500: '#afad28',
    950: '#000000',
  },
}
SCSS
$custom: #afad28;
$custom-light: #cbc56e;
$custom-dark: #000000;
JSON
{
  "hex": "#afad28",
  "rgb": {
    "r": 175,
    "g": 173,
    "b": 40
  },
  "hsl": {
    "h": 59.111,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.72667,
    "c": 0.14545,
    "h": 108.6
  },
  "luminance": 0.39154
}

Semantic roles & 50–950 ramp

primary
#AFAD28
secondary
#6D6EC6
accent
#44E642
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAD28

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

Preview Lab → · Contrast checker → · Palette generator →

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