#AFA84C#AFA84C

#AFA84C is a light, moderate yellow. Relative luminance 0.376; OKLCH L 71.9% C 0.114 H 104.9°. Best body text is #000000 at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#AFA84C
RGBrgb(175, 168, 76)
HSLhsl(56, 39%, 49%)
HSVhsv(56, 57%, 69%)
CMYKcmyk(0%, 4%, 56.6%, 31.4%)
CIE-LABlab(67.76, -9.64, 47.56)
CIE-LCHlch(67.76, 48.52, 101.46°)
OKLaboklab(71.87% -0.0294 0.1105)
OKLCHoklch(71.87% 0.114 104.9)
XYZxyz(32.9874, 37.6421, 12.3641)
Luminance0.3764 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA84C #4C53AF
analogous
#AF774C #AFA84C #85AF4C
triadic
#AFA84C #4CAFA8 #A84CAF
tetradic
#AFA84C #4CAF77 #4C53AF #AF4C85
square
#AFA84C #4CAF77 #4C53AF #AF4C85
split-complementary
#AFA84C #4C85AF #774CAF
monochromatic
#5A5627 #847F39 #AFA84C #C3BE75 #D6D2A0

Accessibility & contrast

On white

2.46
#AFA84C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.53
#AFA84C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA84C
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA84C#FFFFFF#000000##000000
##AFA84C1.002.468.538.53
#FFFFFF2.461.0021.0021.00
#0000008.5321.001.001.00
##0000008.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A343
Deuteranopia (green-blind)
#B8A751
Tritanopia (blue-blind)
#BB9E94
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa84c;
/* rgb */ color: rgb(175, 168, 76);
/* oklch */ color: oklch(71.9% 0.114 104.9);
Tailwind
colors: {
  custom: {
    50: '#c9c181',
    500: '#afa84c',
    950: '#000000',
  },
}
SCSS
$custom: #afa84c;
$custom-light: #c9c181;
$custom-dark: #000000;
JSON
{
  "hex": "#afa84c",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 76
  },
  "hsl": {
    "h": 55.758,
    "s": 39.442,
    "l": 49.216
  },
  "oklch": {
    "l": 0.7187,
    "c": 0.11438,
    "h": 104.9
  },
  "luminance": 0.37641
}

Semantic roles & 50–950 ramp

primary
#AFA84C
secondary
#9498C2
accent
#61CF58
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFA84C

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

Preview Lab → · Contrast checker → · Palette generator →

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