#AFA562#AFA562

#AFA562 is a light, moderate yellow. Relative luminance 0.369; OKLCH L 71.5% C 0.089 H 100.9°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#AFA562
RGBrgb(175, 165, 98)
HSLhsl(52, 32%, 54%)
HSVhsv(52, 44%, 69%)
CMYKcmyk(0%, 5.7%, 44%, 31.4%)
CIE-LABlab(67.21, -6.03, 35.93)
CIE-LCHlch(67.21, 36.44, 99.52°)
OKLaboklab(71.52% -0.0167 0.087)
OKLCHoklch(71.52% 0.089 100.9)
XYZxyz(33.3397, 36.9071, 16.9205)
Luminance0.3691 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA562 #626CAF
analogous
#AF7E62 #AFA562 #92AF62
triadic
#AFA562 #62AFA5 #A562AF
tetradic
#AFA562 #62AF7E #626CAF #AF6292
square
#AFA562 #62AF7E #626CAF #AF6292
split-complementary
#AFA562 #6292AF #7E62AF
monochromatic
#645D33 #8C8347 #AFA562 #C4BC8B #D8D3B3

Accessibility & contrast

On white

2.51
#AFA562 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.38
#AFA562 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA562
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA562#FFFFFF#000000##000000
##AFA5621.002.518.388.38
#FFFFFF2.511.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B0A15D
Deuteranopia (green-blind)
#B3A665
Tritanopia (blue-blind)
#B99C95
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa562;
/* rgb */ color: rgb(175, 165, 98);
/* oklch */ color: oklch(71.5% 0.089 100.9);
Tailwind
colors: {
  custom: {
    50: '#c8bf90',
    500: '#afa562',
    950: '#000000',
  },
}
SCSS
$custom: #afa562;
$custom-light: #c8bf90;
$custom-dark: #000000;
JSON
{
  "hex": "#afa562",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 98
  },
  "hsl": {
    "h": 52.208,
    "s": 32.489,
    "l": 53.529
  },
  "oklch": {
    "l": 0.71522,
    "c": 0.08855,
    "h": 100.9
  },
  "luminance": 0.36906
}

Semantic roles & 50–950 ramp

primary
#AFA562
secondary
#A6AAC7
accent
#6DC95F
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA562

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

Preview Lab → · Contrast checker → · Palette generator →

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