#AFAC42#AFAC42

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

Color values

HEX#AFAC42
RGBrgb(175, 172, 66)
HSLhsl(58, 45%, 47%)
HSVhsv(58, 62%, 69%)
CMYKcmyk(0%, 1.7%, 62.3%, 31.4%)
CIE-LABlab(68.76, -12.46, 53.21)
CIE-LCHlch(68.76, 54.65, 103.18°)
OKLaboklab(72.64% -0.0386 0.1212)
OKLCHoklch(72.64% 0.127 107.6)
XYZxyz(33.4162, 39.0134, 10.9233)
Luminance0.3901 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC42 #4245AF
analogous
#AF7642 #AFAC42 #7BAF42
triadic
#AFAC42 #42AFAC #AC42AF
tetradic
#AFAC42 #42AF76 #4245AF #AF427B
square
#AFAC42 #42AF76 #4245AF #AF427B
split-complementary
#AFAC42 #427BAF #7642AF
monochromatic
#565520 #838031 #AFAC42 #C6C468 #D7D595

Accessibility & contrast

On white

2.39
#AFAC42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.80
#AFAC42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC42
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC42#FFFFFF#000000##000000
##AFAC421.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA635
Deuteranopia (green-blind)
#BCAA48
Tritanopia (blue-blind)
#BBA196
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afac42;
/* rgb */ color: rgb(175, 172, 66);
/* oklch */ color: oklch(72.6% 0.127 107.6);
Tailwind
colors: {
  custom: {
    50: '#cac47b',
    500: '#afac42',
    950: '#000000',
  },
}
SCSS
$custom: #afac42;
$custom-light: #cac47b;
$custom-dark: #000000;
JSON
{
  "hex": "#afac42",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 66
  },
  "hsl": {
    "h": 58.349,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.7264,
    "c": 0.12722,
    "h": 107.6
  },
  "luminance": 0.39012
}

Semantic roles & 50–950 ramp

primary
#AFAC42
secondary
#8A8CC2
accent
#56D553
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFAC42

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

Preview Lab → · Contrast checker → · Palette generator →

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