#AFAC45#AFAC45

#AFAC45 is a light, vivid yellow. Relative luminance 0.390; OKLCH L 72.7% C 0.125 H 107.6°. Best body text is #000000 at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#AFAC45
RGBrgb(175, 172, 69)
HSLhsl(58, 43%, 48%)
HSVhsv(58, 61%, 69%)
CMYKcmyk(0%, 1.7%, 60.6%, 31.4%)
CIE-LABlab(68.79, -12.25, 51.92)
CIE-LCHlch(68.79, 53.34, 103.28°)
OKLaboklab(72.67% -0.0376 0.1189)
OKLCHoklch(72.67% 0.125 107.6)
XYZxyz(33.5070, 39.0497, 11.4014)
Luminance0.3905 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC45 #4548AF
analogous
#AF7745 #AFAC45 #7DAF45
triadic
#AFAC45 #45AFAC #AC45AF
tetradic
#AFAC45 #45AF77 #4548AF #AF457D
square
#AFAC45 #45AF77 #4548AF #AF457D
split-complementary
#AFAC45 #457DAF #7745AF
monochromatic
#575622 #838134 #AFAC45 #C5C36C #D6D598

Accessibility & contrast

On white

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

On black

8.81
#AFAC45 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC45
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC45#FFFFFF#000000##000000
##AFAC451.002.388.818.81
#FFFFFF2.381.0021.0021.00
#0000008.8121.001.001.00
##0000008.8121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afac45;
/* rgb */ color: rgb(175, 172, 69);
/* oklch */ color: oklch(72.7% 0.125 107.6);
Tailwind
colors: {
  custom: {
    50: '#c9c47d',
    500: '#afac45',
    950: '#000000',
  },
}
SCSS
$custom: #afac45;
$custom-light: #c9c47d;
$custom-dark: #000000;
JSON
{
  "hex": "#afac45",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 69
  },
  "hsl": {
    "h": 58.302,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.7267,
    "c": 0.12474,
    "h": 107.6
  },
  "luminance": 0.39049
}

Semantic roles & 50–950 ramp

primary
#AFAC45
secondary
#8D8FC2
accent
#58D355
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFAC45

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

Preview Lab → · Contrast checker → · Palette generator →

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