#AFAD45#AFAD45

#AFAD45 is a light, vivid yellow. Relative luminance 0.394; OKLCH L 72.9% C 0.126 H 108.1°. Best body text is #000000 at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#AFAD45
RGBrgb(175, 173, 69)
HSLhsl(59, 43%, 48%)
HSVhsv(59, 61%, 69%)
CMYKcmyk(0%, 1.1%, 60.6%, 31.4%)
CIE-LABlab(69.06, -12.77, 52.22)
CIE-LCHlch(69.06, 53.76, 103.74°)
OKLaboklab(72.89% -0.0391 0.1196)
OKLCHoklch(72.89% 0.126 108.1)
XYZxyz(33.6980, 39.4318, 11.4651)
Luminance0.3943 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAD45 #4547AF
analogous
#AF7845 #AFAD45 #7CAF45
triadic
#AFAD45 #45AFAD #AD45AF
tetradic
#AFAD45 #45AF78 #4547AF #AF457C
square
#AFAD45 #45AF78 #4547AF #AF457C
split-complementary
#AFAD45 #457CAF #7845AF
monochromatic
#575622 #838234 #AFAD45 #C5C36C #D6D598

Accessibility & contrast

On white

2.36
#AFAD45 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.89
#AFAD45 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAD45
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAD45#FFFFFF#000000##000000
##AFAD451.002.368.898.89
#FFFFFF2.361.0021.0021.00
#0000008.8921.001.001.00
##0000008.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA639
Deuteranopia (green-blind)
#BCAA4B
Tritanopia (blue-blind)
#BBA397
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afad45;
/* rgb */ color: rgb(175, 173, 69);
/* oklch */ color: oklch(72.9% 0.126 108.1);
Tailwind
colors: {
  custom: {
    50: '#c9c57d',
    500: '#afad45',
    950: '#000000',
  },
}
SCSS
$custom: #afad45;
$custom-light: #c9c57d;
$custom-dark: #000000;
JSON
{
  "hex": "#afad45",
  "rgb": {
    "r": 175,
    "g": 173,
    "b": 69
  },
  "hsl": {
    "h": 58.868,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.72889,
    "c": 0.1258,
    "h": 108.1
  },
  "luminance": 0.39431
}

Semantic roles & 50–950 ramp

primary
#AFAD45
secondary
#8D8EC2
accent
#57D355
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFAD45

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

Preview Lab → · Contrast checker → · Palette generator →

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