#AFAC72#AFAC72

#AFAC72 is a light, moderate yellow. Relative luminance 0.398; OKLCH L 73.3% C 0.078 H 105.6°. Best body text is #000000 at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#AFAC72
RGBrgb(175, 172, 114)
HSLhsl(57, 28%, 57%)
HSVhsv(57, 35%, 69%)
CMYKcmyk(0%, 1.7%, 34.9%, 31.4%)
CIE-LABlab(69.35, -7.92, 30.27)
CIE-LCHlch(69.35, 31.29, 104.66°)
OKLaboklab(73.3% -0.0209 0.0748)
OKLCHoklch(73.3% 0.078 105.6)
XYZxyz(35.4694, 39.8346, 21.7367)
Luminance0.3983 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC72 #7275AF
analogous
#AF8E72 #AFAC72 #94AF72
triadic
#AFAC72 #72AFAC #AC72AF
tetradic
#AFAC72 #72AF8E #7275AF #AF7294
square
#AFAC72 #72AF8E #7275AF #AF7294
split-complementary
#AFAC72 #7294AF #8E72AF
monochromatic
#6A683C #918E52 #AFAC72 #C5C399 #DBDAC0

Accessibility & contrast

On white

2.34
#AFAC72 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.97
#AFAC72 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC72
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC72#FFFFFF#000000##000000
##AFAC721.002.348.978.97
#FFFFFF2.341.0021.0021.00
#0000008.9721.001.001.00
##0000008.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A86E
Deuteranopia (green-blind)
#B7AB74
Tritanopia (blue-blind)
#B8A59D
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afac72;
/* rgb */ color: rgb(175, 172, 114);
/* oklch */ color: oklch(73.3% 0.078 105.6);
Tailwind
colors: {
  custom: {
    50: '#c8c49b',
    500: '#afac72',
    950: '#000000',
  },
}
SCSS
$custom: #afac72;
$custom-light: #c8c49b;
$custom-dark: #000000;
JSON
{
  "hex": "#afac72",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 114
  },
  "hsl": {
    "h": 57.049,
    "s": 27.602,
    "l": 56.667
  },
  "oklch": {
    "l": 0.73301,
    "c": 0.07764,
    "h": 105.6
  },
  "luminance": 0.39834
}

Semantic roles & 50–950 ramp

primary
#AFAC72
secondary
#B2B3CB
accent
#69C464
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFAC72

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

Preview Lab → · Contrast checker → · Palette generator →

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