#AFAD27#AFAD27

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

Color values

HEX#AFAD27
RGBrgb(175, 173, 39)
HSLhsl(59, 64%, 42%)
HSVhsv(59, 78%, 69%)
CMYKcmyk(0%, 1.1%, 77.7%, 31.4%)
CIE-LABlab(68.86, -14.38, 63.47)
CIE-LCHlch(68.86, 65.08, 102.77°)
OKLaboklab(72.66% -0.0467 0.1383)
OKLCHoklch(72.66% 0.146 108.6)
XYZxyz(32.9903, 39.1487, 7.7377)
Luminance0.3915 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAD27 #2729AF
analogous
#AF6927 #AFAD27 #6DAF27
triadic
#AFAD27 #27AFAD #AD27AF
tetradic
#AFAD27 #27AF69 #2729AF #AF276D
square
#AFAD27 #27AF69 #2729AF #AF276D
split-complementary
#AFAD27 #276DAF #6927AF
monochromatic
#4B4A11 #7D7C1C #AFAD27 #D4D23F #DFDE71

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAD27#FFFFFF#000000##000000
##AFAD271.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)
#BEAA33
Tritanopia (blue-blind)
#BCA194
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afad27;
/* rgb */ color: rgb(175, 173, 39);
/* oklch */ color: oklch(72.7% 0.146 108.6);
Tailwind
colors: {
  custom: {
    50: '#cbc56d',
    500: '#afad27',
    950: '#000000',
  },
}
SCSS
$custom: #afad27;
$custom-light: #cbc56d;
$custom-dark: #000000;
JSON
{
  "hex": "#afad27",
  "rgb": {
    "r": 175,
    "g": 173,
    "b": 39
  },
  "hsl": {
    "h": 59.118,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.72661,
    "c": 0.14596,
    "h": 108.6
  },
  "luminance": 0.39148
}

Semantic roles & 50–950 ramp

primary
#AFAD27
secondary
#6B6DC6
accent
#44E741
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAD27

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

Preview Lab → · Contrast checker → · Palette generator →

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