#AFAD2E#AFAD2E

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

Color values

HEX#AFAD2E
RGBrgb(175, 173, 46)
HSLhsl(59, 58%, 43%)
HSVhsv(59, 74%, 69%)
CMYKcmyk(0%, 1.1%, 73.7%, 31.4%)
CIE-LABlab(68.90, -14.09, 61.21)
CIE-LCHlch(68.90, 62.81, 102.96°)
OKLaboklab(72.7% -0.0452 0.1348)
OKLCHoklch(72.7% 0.142 108.5)
XYZxyz(33.1172, 39.1994, 8.4060)
Luminance0.3920 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAD2E #2E30AF
analogous
#AF6C2E #AFAD2E #70AF2E
triadic
#AFAD2E #2EAFAD #AD2EAF
tetradic
#AFAD2E #2EAF6C #2E30AF #AF2E70
square
#AFAD2E #2EAF6C #2E30AF #AF2E70
split-complementary
#AFAD2E #2E70AF #6C2EAF
monochromatic
#4E4D15 #7F7D21 #AFAD2E #D0CE4B #DCDB7B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAD2E#FFFFFF#000000##000000
##AFAD2E1.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)
#BBA614
Deuteranopia (green-blind)
#BDAA38
Tritanopia (blue-blind)
#BCA295
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afad2e;
/* rgb */ color: rgb(175, 173, 46);
/* oklch */ color: oklch(72.7% 0.142 108.5);
Tailwind
colors: {
  custom: {
    50: '#cac570',
    500: '#afad2e',
    950: '#000000',
  },
}
SCSS
$custom: #afad2e;
$custom-light: #cac570;
$custom-dark: #000000;
JSON
{
  "hex": "#afad2e",
  "rgb": {
    "r": 175,
    "g": 173,
    "b": 46
  },
  "hsl": {
    "h": 59.07,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.72702,
    "c": 0.14219,
    "h": 108.5
  },
  "luminance": 0.39198
}

Semantic roles & 50–950 ramp

primary
#AFAD2E
secondary
#7475C5
accent
#49E246
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAD2E

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

Preview Lab → · Contrast checker → · Palette generator →

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