#AFAF28#AFAF28

#AFAF28 is a light, vivid yellow. Relative luminance 0.399; OKLCH L 73.1% C 0.147 H 109.6°. Best body text is #000000 at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#AFAF28
RGBrgb(175, 175, 40)
HSLhsl(60, 63%, 42%)
HSVhsv(60, 77%, 69%)
CMYKcmyk(0%, 0%, 77.1%, 31.4%)
CIE-LABlab(69.42, -15.37, 63.66)
CIE-LCHlch(69.42, 65.49, 103.57°)
OKLaboklab(73.11% -0.0493 0.1389)
OKLCHoklch(73.11% 0.147 109.6)
XYZxyz(33.3934, 39.9281, 7.9549)
Luminance0.3993 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF28 #2828AF
analogous
#AF6C28 #AFAF28 #6CAF28
triadic
#AFAF28 #28AFAF #AF28AF
tetradic
#AFAF28 #28AF6C #2828AF #AF286C
square
#AFAF28 #28AF6C #2828AF #AF286C
split-complementary
#AFAF28 #286CAF #6C28AF
monochromatic
#4B4B11 #7D7D1D #AFAF28 #D4D441 #DFDF73

Accessibility & contrast

On white

2.34
#AFAF28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.99
#AFAF28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF28
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF28#FFFFFF#000000##000000
##AFAF281.002.348.998.99
#FFFFFF2.341.0021.0021.00
#0000008.9921.001.001.00
##0000008.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA700
Deuteranopia (green-blind)
#BFAB34
Tritanopia (blue-blind)
#BCA396
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afaf28;
/* rgb */ color: rgb(175, 175, 40);
/* oklch */ color: oklch(73.1% 0.147 109.6);
Tailwind
colors: {
  custom: {
    50: '#cbc66e',
    500: '#afaf28',
    950: '#000000',
  },
}
SCSS
$custom: #afaf28;
$custom-light: #cbc66e;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf28",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 40
  },
  "hsl": {
    "h": 60,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.7311,
    "c": 0.1474,
    "h": 109.6
  },
  "luminance": 0.39927
}

Semantic roles & 50–950 ramp

primary
#AFAF28
secondary
#6D6DC6
accent
#42E642
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFAF28

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

Preview Lab → · Contrast checker → · Palette generator →

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