#AFAB72#AFAB72

#AFAB72 is a light, moderate yellow. Relative luminance 0.395; OKLCH L 73.1% C 0.076 H 104.7°. Best body text is #000000 at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#AFAB72
RGBrgb(175, 171, 114)
HSLhsl(56, 28%, 57%)
HSVhsv(56, 35%, 69%)
CMYKcmyk(0%, 2.3%, 34.9%, 31.4%)
CIE-LABlab(69.08, -7.39, 29.91)
CIE-LCHlch(69.08, 30.81, 103.87°)
OKLaboklab(73.09% -0.0194 0.074)
OKLCHoklch(73.09% 0.076 104.7)
XYZxyz(35.2798, 39.4554, 21.6735)
Luminance0.3946 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB72 #7276AF
analogous
#AF8D72 #AFAB72 #95AF72
triadic
#AFAB72 #72AFAB #AB72AF
tetradic
#AFAB72 #72AF8D #7276AF #AF7295
square
#AFAB72 #72AF8D #7276AF #AF7295
split-complementary
#AFAB72 #7295AF #8D72AF
monochromatic
#6A673C #918D52 #AFAB72 #C5C299 #DBDAC0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAB72#FFFFFF#000000##000000
##AFAB721.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)
#B5A76E
Deuteranopia (green-blind)
#B6AA74
Tritanopia (blue-blind)
#B8A49C
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afab72;
/* rgb */ color: rgb(175, 171, 114);
/* oklch */ color: oklch(73.1% 0.076 104.7);
Tailwind
colors: {
  custom: {
    50: '#c8c39b',
    500: '#afab72',
    950: '#000000',
  },
}
SCSS
$custom: #afab72;
$custom-light: #c8c39b;
$custom-dark: #000000;
JSON
{
  "hex": "#afab72",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 114
  },
  "hsl": {
    "h": 56.066,
    "s": 27.602,
    "l": 56.667
  },
  "oklch": {
    "l": 0.73086,
    "c": 0.07645,
    "h": 104.7
  },
  "luminance": 0.39455
}

Semantic roles & 50–950 ramp

primary
#AFAB72
secondary
#B2B4CB
accent
#6AC464
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFAB72

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

Preview Lab → · Contrast checker → · Palette generator →

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