#AFAD2C#AFAD2C

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

Color values

HEX#AFAD2C
RGBrgb(175, 173, 44)
HSLhsl(59, 60%, 43%)
HSVhsv(59, 75%, 69%)
CMYKcmyk(0%, 1.1%, 74.9%, 31.4%)
CIE-LABlab(68.88, -14.18, 61.88)
CIE-LCHlch(68.88, 63.49, 102.91°)
OKLaboklab(72.69% -0.0457 0.1359)
OKLCHoklch(72.69% 0.143 108.6)
XYZxyz(33.0787, 39.1840, 8.2032)
Luminance0.3918 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAD2C #2C2EAF
analogous
#AF6B2C #AFAD2C #6FAF2C
triadic
#AFAD2C #2CAFAD #AD2CAF
tetradic
#AFAD2C #2CAF6B #2C2EAF #AF2C6F
square
#AFAD2C #2CAF6B #2C2EAF #AF2C6F
split-complementary
#AFAD2C #2C6FAF #6B2CAF
monochromatic
#4D4C13 #7E7D20 #AFAD2C #D1CF47 #DDDC78

Accessibility & contrast

On white

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

On black

8.84
#AFAD2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAD2C
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAD2C#FFFFFF#000000##000000
##AFAD2C1.002.388.848.84
#FFFFFF2.381.0021.0021.00
#0000008.8421.001.001.00
##0000008.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA60F
Deuteranopia (green-blind)
#BDAA36
Tritanopia (blue-blind)
#BCA295
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afad2c;
/* rgb */ color: rgb(175, 173, 44);
/* oklch */ color: oklch(72.7% 0.143 108.6);
Tailwind
colors: {
  custom: {
    50: '#cbc56f',
    500: '#afad2c',
    950: '#000000',
  },
}
SCSS
$custom: #afad2c;
$custom-light: #cbc56f;
$custom-dark: #000000;
JSON
{
  "hex": "#afad2c",
  "rgb": {
    "r": 175,
    "g": 173,
    "b": 44
  },
  "hsl": {
    "h": 59.084,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.7269,
    "c": 0.14332,
    "h": 108.6
  },
  "luminance": 0.39183
}

Semantic roles & 50–950 ramp

primary
#AFAD2C
secondary
#7273C5
accent
#47E345
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAD2C

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

Preview Lab → · Contrast checker → · Palette generator →

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