#AFAD23#AFAD23

#AFAD23 is a light, vivid yellow. Relative luminance 0.391; OKLCH L 72.6% C 0.148 H 108.7°. Best body text is #000000 at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#AFAD23
RGBrgb(175, 173, 35)
HSLhsl(59, 67%, 41%)
HSVhsv(59, 80%, 69%)
CMYKcmyk(0%, 1.1%, 80%, 31.4%)
CIE-LABlab(68.84, -14.53, 64.63)
CIE-LCHlch(68.84, 66.25, 102.67°)
OKLaboklab(72.64% -0.0474 0.1401)
OKLCHoklch(72.64% 0.148 108.7)
XYZxyz(32.9275, 39.1235, 7.4069)
Luminance0.3912 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAD23 #2325AF
analogous
#AF6723 #AFAD23 #6BAF23
triadic
#AFAD23 #23AFAD #AD23AF
tetradic
#AFAD23 #23AF67 #2325AF #AF236B
square
#AFAD23 #23AF67 #2325AF #AF236B
split-complementary
#AFAD23 #236BAF #6723AF
monochromatic
#49480F #7C7B19 #AFAD23 #D7D538 #E1E06B

Accessibility & contrast

On white

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

On black

8.82
#AFAD23 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAD23
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAD23#FFFFFF#000000##000000
##AFAD231.002.388.828.82
#FFFFFF2.381.0021.0021.00
#0000008.8221.001.001.00
##0000008.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afad23;
/* rgb */ color: rgb(175, 173, 35);
/* oklch */ color: oklch(72.6% 0.148 108.7);
Tailwind
colors: {
  custom: {
    50: '#cbc56b',
    500: '#afad23',
    950: '#000000',
  },
}
SCSS
$custom: #afad23;
$custom-light: #cbc56b;
$custom-dark: #000000;
JSON
{
  "hex": "#afad23",
  "rgb": {
    "r": 175,
    "g": 173,
    "b": 35
  },
  "hsl": {
    "h": 59.143,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.72641,
    "c": 0.14785,
    "h": 108.7
  },
  "luminance": 0.39122
}

Semantic roles & 50–950 ramp

primary
#AFAD23
secondary
#6668C7
accent
#41EA3E
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFAD23

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

Preview Lab → · Contrast checker → · Palette generator →

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