#AFA84A#AFA84A

#AFA84A is a light, moderate yellow. Relative luminance 0.376; OKLCH L 71.8% C 0.116 H 105.0°. Best body text is #000000 at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#AFA84A
RGBrgb(175, 168, 74)
HSLhsl(56, 41%, 49%)
HSVhsv(56, 58%, 69%)
CMYKcmyk(0%, 4%, 57.7%, 31.4%)
CIE-LABlab(67.74, -9.80, 48.47)
CIE-LCHlch(67.74, 49.45, 101.43°)
OKLaboklab(71.85% -0.0301 0.1123)
OKLCHoklch(71.85% 0.116 105)
XYZxyz(32.9189, 37.6147, 12.0036)
Luminance0.3761 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA84A #4A51AF
analogous
#AF764A #AFA84A #84AF4A
triadic
#AFA84A #4AAFA8 #A84AAF
tetradic
#AFA84A #4AAF76 #4A51AF #AF4A84
square
#AFA84A #4AAF76 #4A51AF #AF4A84
split-complementary
#AFA84A #4A84AF #764AAF
monochromatic
#595526 #847F38 #AFA84A #C4BE73 #D6D29E

Accessibility & contrast

On white

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

On black

8.52
#AFA84A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA84A
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA84A#FFFFFF#000000##000000
##AFA84A1.002.468.528.52
#FFFFFF2.461.0021.0021.00
#0000008.5221.001.001.00
##0000008.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A240
Deuteranopia (green-blind)
#B8A74F
Tritanopia (blue-blind)
#BB9E93
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa84a;
/* rgb */ color: rgb(175, 168, 74);
/* oklch */ color: oklch(71.8% 0.116 105.0);
Tailwind
colors: {
  custom: {
    50: '#c9c180',
    500: '#afa84a',
    950: '#000000',
  },
}
SCSS
$custom: #afa84a;
$custom-light: #c9c180;
$custom-dark: #000000;
JSON
{
  "hex": "#afa84a",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 74
  },
  "hsl": {
    "h": 55.842,
    "s": 40.562,
    "l": 48.824
  },
  "oklch": {
    "l": 0.71848,
    "c": 0.11622,
    "h": 105
  },
  "luminance": 0.37614
}

Semantic roles & 50–950 ramp

primary
#AFA84A
secondary
#9296C2
accent
#60D057
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFA84A

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

Preview Lab → · Contrast checker → · Palette generator →

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