#AFAD2A#AFAD2A

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

Color values

HEX#AFAD2A
RGBrgb(175, 173, 42)
HSLhsl(59, 61%, 43%)
HSVhsv(59, 76%, 69%)
CMYKcmyk(0%, 1.1%, 76%, 31.4%)
CIE-LABlab(68.87, -14.26, 62.53)
CIE-LCHlch(68.87, 64.14, 102.85°)
OKLaboklab(72.68% -0.0461 0.1369)
OKLCHoklch(72.68% 0.144 108.6)
XYZxyz(33.0420, 39.1693, 8.0100)
Luminance0.3917 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAD2A #2A2CAF
analogous
#AF6B2A #AFAD2A #6EAF2A
triadic
#AFAD2A #2AAFAD #AD2AAF
tetradic
#AFAD2A #2AAF6B #2A2CAF #AF2A6E
square
#AFAD2A #2AAF6B #2A2CAF #AF2A6E
split-complementary
#AFAD2A #2A6EAF #6B2AAF
monochromatic
#4C4B12 #7E7C1E #AFAD2A #D2D044 #DEDC75

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAD2A#FFFFFF#000000##000000
##AFAD2A1.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)
#BCA609
Deuteranopia (green-blind)
#BDAA35
Tritanopia (blue-blind)
#BCA194
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afad2a;
/* rgb */ color: rgb(175, 173, 42);
/* oklch */ color: oklch(72.7% 0.144 108.6);
Tailwind
colors: {
  custom: {
    50: '#cbc56e',
    500: '#afad2a',
    950: '#000000',
  },
}
SCSS
$custom: #afad2a;
$custom-light: #cbc56e;
$custom-dark: #000000;
JSON
{
  "hex": "#afad2a",
  "rgb": {
    "r": 175,
    "g": 173,
    "b": 42
  },
  "hsl": {
    "h": 59.098,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.72678,
    "c": 0.14441,
    "h": 108.6
  },
  "luminance": 0.39168
}

Semantic roles & 50–950 ramp

primary
#AFAD2A
secondary
#6F71C6
accent
#46E443
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAD2A

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

Preview Lab → · Contrast checker → · Palette generator →

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