#AFAF72#AFAF72

#AFAF72 is a light, moderate yellow. Relative luminance 0.410; OKLCH L 74.0% C 0.081 H 108.2°. Best body text is #000000 at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#AFAF72
RGBrgb(175, 175, 114)
HSLhsl(60, 28%, 57%)
HSVhsv(60, 35%, 69%)
CMYKcmyk(0%, 0%, 34.9%, 31.4%)
CIE-LABlab(70.17, -9.50, 31.33)
CIE-LCHlch(70.17, 32.74, 106.86°)
OKLaboklab(73.95% -0.0254 0.0772)
OKLCHoklch(73.95% 0.081 108.2)
XYZxyz(36.0468, 40.9895, 21.9292)
Luminance0.4099 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF72 #7272AF
analogous
#AF9172 #AFAF72 #91AF72
triadic
#AFAF72 #72AFAF #AF72AF
tetradic
#AFAF72 #72AF91 #7272AF #AF7291
square
#AFAF72 #72AF91 #7272AF #AF7291
split-complementary
#AFAF72 #7291AF #9172AF
monochromatic
#6A6A3C #919152 #AFAF72 #C5C599 #DBDBC0

Accessibility & contrast

On white

2.28
#AFAF72 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.20
#AFAF72 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF72
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF72#FFFFFF#000000##000000
##AFAF721.002.289.209.20
#FFFFFF2.281.0021.0021.00
#0000009.2021.001.001.00
##0000009.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8AA6E
Deuteranopia (green-blind)
#B9AD75
Tritanopia (blue-blind)
#B7A8A0
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afaf72;
/* rgb */ color: rgb(175, 175, 114);
/* oklch */ color: oklch(74.0% 0.081 108.2);
Tailwind
colors: {
  custom: {
    50: '#c8c69b',
    500: '#afaf72',
    950: '#000000',
  },
}
SCSS
$custom: #afaf72;
$custom-light: #c8c69b;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf72",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 114
  },
  "hsl": {
    "h": 60,
    "s": 27.602,
    "l": 56.667
  },
  "oklch": {
    "l": 0.7395,
    "c": 0.08132,
    "h": 108.2
  },
  "luminance": 0.40989
}

Semantic roles & 50–950 ramp

primary
#AFAF72
secondary
#B2B2CB
accent
#64C464
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13130E
muted
#82827E

Preview Lab

Preview with #AFAF72

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

Preview Lab → · Contrast checker → · Palette generator →

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