#AFA272#AFA272

#AFA272 is a light, moderate yellow. Relative luminance 0.362; OKLCH L 71.2% C 0.067 H 94.8°. Best body text is #000000 at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#AFA272
RGBrgb(175, 162, 114)
HSLhsl(47, 28%, 57%)
HSVhsv(47, 35%, 69%)
CMYKcmyk(0%, 7.4%, 34.9%, 31.4%)
CIE-LABlab(66.65, -2.58, 26.72)
CIE-LCHlch(66.65, 26.84, 95.52°)
OKLaboklab(71.16% -0.0055 0.0665)
OKLCHoklch(71.16% 0.067 94.8)
XYZxyz(33.6373, 36.1705, 21.1260)
Luminance0.3617 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA272 #727FAF
analogous
#AF8472 #AFA272 #9EAF72
triadic
#AFA272 #72AFA2 #A272AF
tetradic
#AFA272 #72AF84 #727FAF #AF729E
square
#AFA272 #72AF84 #727FAF #AF729E
split-complementary
#AFA272 #729EAF #8472AF
monochromatic
#6A603C #918452 #AFA272 #C5BC99 #DBD6C0

Accessibility & contrast

On white

2.55
#AFA272 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.23
#AFA272 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA272
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA272#FFFFFF#000000##000000
##AFA2721.002.558.238.23
#FFFFFF2.551.0021.0021.00
#0000008.2321.001.001.00
##0000008.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#ACA06F
Deuteranopia (green-blind)
#AFA474
Tritanopia (blue-blind)
#B89B96
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa272;
/* rgb */ color: rgb(175, 162, 114);
/* oklch */ color: oklch(71.2% 0.067 94.8);
Tailwind
colors: {
  custom: {
    50: '#c8bd9b',
    500: '#afa272',
    950: '#000000',
  },
}
SCSS
$custom: #afa272;
$custom-light: #c8bd9b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa272",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 114
  },
  "hsl": {
    "h": 47.213,
    "s": 27.602,
    "l": 56.667
  },
  "oklch": {
    "l": 0.71163,
    "c": 0.0667,
    "h": 94.8
  },
  "luminance": 0.3617
}

Semantic roles & 50–950 ramp

primary
#AFA272
secondary
#B2B7CB
accent
#78C464
background
#FCFBF9
surface
#F8F6F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA272

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

Preview Lab → · Contrast checker → · Palette generator →

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