#AFBA72#AFBA72

#AFBA72 is a light, moderate yellow. Relative luminance 0.454; OKLCH L 76.3% C 0.096 H 115.8°. Best body text is #000000 at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#AFBA72
RGBrgb(175, 186, 114)
HSLhsl(69, 34%, 59%)
HSVhsv(69, 39%, 73%)
CMYKcmyk(5.9%, 0%, 38.7%, 27.1%)
CIE-LABlab(73.19, -15.19, 35.23)
CIE-LCHlch(73.19, 38.36, 113.32°)
OKLaboklab(76.35% -0.0417 0.0862)
OKLCHoklch(76.35% 0.096 115.8)
XYZxyz(38.2756, 45.4470, 22.6721)
Luminance0.4545 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA72 #7D72BA
analogous
#BAA172 #AFBA72 #8BBA72
triadic
#AFBA72 #72AFBA #BA72AF
tetradic
#AFBA72 #72BAA1 #7D72BA #BA728B
square
#AFBA72 #72BAA1 #7D72BA #BA728B
split-complementary
#AFBA72 #728BBA #A172BA
monochromatic
#6E773A #94A04E #AFBA72 #C6CE9B #DEE2C4

Accessibility & contrast

On white

2.08
#AFBA72 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.09
#AFBA72 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA72
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA72#FFFFFF#000000##000000
##AFBA721.002.0810.0910.09
#FFFFFF2.081.0021.0021.00
#00000010.0921.001.001.00
##00000010.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3B36D
Deuteranopia (green-blind)
#C2B475
Tritanopia (blue-blind)
#B6B3A8
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #afba72;
/* rgb */ color: rgb(175, 186, 114);
/* oklch */ color: oklch(76.3% 0.096 115.8);
Tailwind
colors: {
  custom: {
    50: '#c8ce9b',
    500: '#afba72',
    950: '#000000',
  },
}
SCSS
$custom: #afba72;
$custom-light: #c8ce9b;
$custom-dark: #000000;
JSON
{
  "hex": "#afba72",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 114
  },
  "hsl": {
    "h": 69.167,
    "s": 34.286,
    "l": 58.824
  },
  "oklch": {
    "l": 0.7635,
    "c": 0.09575,
    "h": 115.8
  },
  "luminance": 0.45447
}

Semantic roles & 50–950 ramp

primary
#AFBA72
secondary
#BAB6D2
accent
#5DCA6E
background
#FCFCF9
surface
#F8F9F2
border
#D1D2CC
text
#13130E
muted
#82827E

Preview Lab

Preview with #AFBA72

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

Preview Lab → · Contrast checker → · Palette generator →

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