#AFA84D#AFA84D

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

Color values

HEX#AFA84D
RGBrgb(175, 168, 77)
HSLhsl(56, 39%, 49%)
HSVhsv(56, 56%, 69%)
CMYKcmyk(0%, 4%, 56%, 31.4%)
CIE-LABlab(67.77, -9.56, 47.10)
CIE-LCHlch(67.77, 48.06, 101.48°)
OKLaboklab(71.88% -0.0291 0.1097)
OKLCHoklch(71.88% 0.113 104.9)
XYZxyz(33.0224, 37.6561, 12.5486)
Luminance0.3765 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA84D #4D54AF
analogous
#AF774D #AFA84D #85AF4D
triadic
#AFA84D #4DAFA8 #A84DAF
tetradic
#AFA84D #4DAF77 #4D54AF #AF4D85
square
#AFA84D #4DAF77 #4D54AF #AF4D85
split-complementary
#AFA84D #4D85AF #774DAF
monochromatic
#5A5628 #857F3A #AFA84D #C3BD76 #D6D2A1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA84D#FFFFFF#000000##000000
##AFA84D1.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)
#B5A344
Deuteranopia (green-blind)
#B8A752
Tritanopia (blue-blind)
#BB9E94
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa84d;
/* rgb */ color: rgb(175, 168, 77);
/* oklch */ color: oklch(71.9% 0.113 104.9);
Tailwind
colors: {
  custom: {
    50: '#c9c182',
    500: '#afa84d',
    950: '#000000',
  },
}
SCSS
$custom: #afa84d;
$custom-light: #c9c182;
$custom-dark: #000000;
JSON
{
  "hex": "#afa84d",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 77
  },
  "hsl": {
    "h": 55.714,
    "s": 38.889,
    "l": 49.412
  },
  "oklch": {
    "l": 0.71882,
    "c": 0.11344,
    "h": 104.9
  },
  "luminance": 0.37655
}

Semantic roles & 50–950 ramp

primary
#AFA84D
secondary
#9599C3
accent
#61CF59
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA84D

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

Preview Lab → · Contrast checker → · Palette generator →

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