#AFAD26#AFAD26

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

Color values

HEX#AFAD26
RGBrgb(175, 173, 38)
HSLhsl(59, 64%, 42%)
HSVhsv(59, 78%, 69%)
CMYKcmyk(0%, 1.1%, 78.3%, 31.4%)
CIE-LABlab(68.85, -14.42, 63.77)
CIE-LCHlch(68.85, 65.38, 102.74°)
OKLaboklab(72.66% -0.0468 0.1388)
OKLCHoklch(72.66% 0.146 108.7)
XYZxyz(32.9739, 39.1421, 7.6516)
Luminance0.3914 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAD26 #2628AF
analogous
#AF6926 #AFAD26 #6DAF26
triadic
#AFAD26 #26AFAD #AD26AF
tetradic
#AFAD26 #26AF69 #2628AF #AF266D
square
#AFAD26 #26AF69 #2628AF #AF266D
split-complementary
#AFAD26 #266DAF #6926AF
monochromatic
#4A4A10 #7D7B1B #AFAD26 #D5D33D #E0DE70

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAD26#FFFFFF#000000##000000
##AFAD261.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)
#BCA600
Deuteranopia (green-blind)
#BEAA32
Tritanopia (blue-blind)
#BCA194
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afad26;
/* rgb */ color: rgb(175, 173, 38);
/* oklch */ color: oklch(72.7% 0.146 108.7);
Tailwind
colors: {
  custom: {
    50: '#cbc56d',
    500: '#afad26',
    950: '#000000',
  },
}
SCSS
$custom: #afad26;
$custom-light: #cbc56d;
$custom-dark: #000000;
JSON
{
  "hex": "#afad26",
  "rgb": {
    "r": 175,
    "g": 173,
    "b": 38
  },
  "hsl": {
    "h": 59.124,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.72656,
    "c": 0.14645,
    "h": 108.7
  },
  "luminance": 0.39141
}

Semantic roles & 50–950 ramp

primary
#AFAD26
secondary
#6A6CC7
accent
#43E740
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAD26

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

Preview Lab → · Contrast checker → · Palette generator →

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