#AFAD2B#AFAD2B

#AFAD2B 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.84:1 contrast (WCAG AA passes).

Color values

HEX#AFAD2B
RGBrgb(175, 173, 43)
HSLhsl(59, 61%, 43%)
HSVhsv(59, 75%, 69%)
CMYKcmyk(0%, 1.1%, 75.4%, 31.4%)
CIE-LABlab(68.88, -14.22, 62.21)
CIE-LCHlch(68.88, 63.81, 102.88°)
OKLaboklab(72.68% -0.0459 0.1364)
OKLCHoklch(72.68% 0.144 108.6)
XYZxyz(33.0601, 39.1766, 8.1054)
Luminance0.3918 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAD2B #2B2DAF
analogous
#AF6B2B #AFAD2B #6FAF2B
triadic
#AFAD2B #2BAFAD #AD2BAF
tetradic
#AFAD2B #2BAF6B #2B2DAF #AF2B6F
square
#AFAD2B #2BAF6B #2B2DAF #AF2B6F
split-complementary
#AFAD2B #2B6FAF #6B2BAF
monochromatic
#4D4C13 #7E7C1F #AFAD2B #D1CF46 #DEDC77

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAD2B#FFFFFF#000000##000000
##AFAD2B1.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)
#BCA60C
Deuteranopia (green-blind)
#BDAA36
Tritanopia (blue-blind)
#BCA294
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afad2b;
/* rgb */ color: rgb(175, 173, 43);
/* oklch */ color: oklch(72.7% 0.144 108.6);
Tailwind
colors: {
  custom: {
    50: '#cbc56f',
    500: '#afad2b',
    950: '#000000',
  },
}
SCSS
$custom: #afad2b;
$custom-light: #cbc56f;
$custom-dark: #000000;
JSON
{
  "hex": "#afad2b",
  "rgb": {
    "r": 175,
    "g": 173,
    "b": 43
  },
  "hsl": {
    "h": 59.091,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.72684,
    "c": 0.14387,
    "h": 108.6
  },
  "luminance": 0.39176
}

Semantic roles & 50–950 ramp

primary
#AFAD2B
secondary
#7072C5
accent
#47E444
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAD2B

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

Preview Lab → · Contrast checker → · Palette generator →

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