#AFAD3B#AFAD3B

#AFAD3B is a light, vivid yellow. Relative luminance 0.393; OKLCH L 72.8% C 0.134 H 108.3°. Best body text is #000000 at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#AFAD3B
RGBrgb(175, 173, 59)
HSLhsl(59, 50%, 46%)
HSVhsv(59, 66%, 69%)
CMYKcmyk(0%, 1.1%, 66.3%, 31.4%)
CIE-LABlab(68.98, -13.41, 56.39)
CIE-LCHlch(68.98, 57.96, 103.38°)
OKLaboklab(72.8% -0.042 0.1269)
OKLCHoklch(72.8% 0.134 108.3)
XYZxyz(33.4133, 39.3179, 9.9658)
Luminance0.3932 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAD3B #3B3DAF
analogous
#AF733B #AFAD3B #77AF3B
triadic
#AFAD3B #3BAFAD #AD3BAF
tetradic
#AFAD3B #3BAF73 #3B3DAF #AF3B77
square
#AFAD3B #3BAF73 #3B3DAF #AF3B77
split-complementary
#AFAD3B #3B77AF #733BAF
monochromatic
#53531C #81802C #AFAD3B #C9C75E #D8D78C

Accessibility & contrast

On white

2.37
#AFAD3B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.86
#AFAD3B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAD3B
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAD3B#FFFFFF#000000##000000
##AFAD3B1.002.378.868.86
#FFFFFF2.371.0021.0021.00
#0000008.8621.001.001.00
##0000008.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA62B
Deuteranopia (green-blind)
#BDAA42
Tritanopia (blue-blind)
#BBA296
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afad3b;
/* rgb */ color: rgb(175, 173, 59);
/* oklch */ color: oklch(72.8% 0.134 108.3);
Tailwind
colors: {
  custom: {
    50: '#cac577',
    500: '#afad3b',
    950: '#000000',
  },
}
SCSS
$custom: #afad3b;
$custom-light: #cac577;
$custom-dark: #000000;
JSON
{
  "hex": "#afad3b",
  "rgb": {
    "r": 175,
    "g": 173,
    "b": 59
  },
  "hsl": {
    "h": 58.966,
    "s": 49.573,
    "l": 45.882
  },
  "oklch": {
    "l": 0.72798,
    "c": 0.13366,
    "h": 108.3
  },
  "luminance": 0.39317
}

Semantic roles & 50–950 ramp

primary
#AFAD3B
secondary
#8384C3
accent
#51D94F
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAD3B

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

Preview Lab → · Contrast checker → · Palette generator →

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