#AFA962#AFA962

#AFA962 is a light, moderate yellow. Relative luminance 0.384; OKLCH L 72.4% C 0.093 H 104.2°. Best body text is #000000 at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#AFA962
RGBrgb(175, 169, 98)
HSLhsl(55, 32%, 54%)
HSVhsv(55, 44%, 69%)
CMYKcmyk(0%, 3.4%, 44%, 31.4%)
CIE-LABlab(68.29, -8.15, 37.29)
CIE-LCHlch(68.29, 38.17, 102.33°)
OKLaboklab(72.38% -0.0228 0.09)
OKLCHoklch(72.38% 0.093 104.2)
XYZxyz(34.0725, 38.3727, 17.1647)
Luminance0.3837 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA962 #6268AF
analogous
#AF8262 #AFA962 #8EAF62
triadic
#AFA962 #62AFA9 #A962AF
tetradic
#AFA962 #62AF82 #6268AF #AF628E
square
#AFA962 #62AF82 #6268AF #AF628E
split-complementary
#AFA962 #628EAF #8262AF
monochromatic
#646033 #8C8747 #AFA962 #C4BF8B #D8D5B3

Accessibility & contrast

On white

2.42
#AFA962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.67
#AFA962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA962
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA962#FFFFFF#000000##000000
##AFA9621.002.428.678.67
#FFFFFF2.421.0021.0021.00
#0000008.6721.001.001.00
##0000008.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A45C
Deuteranopia (green-blind)
#B7A865
Tritanopia (blue-blind)
#B9A098
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa962;
/* rgb */ color: rgb(175, 169, 98);
/* oklch */ color: oklch(72.4% 0.093 104.2);
Tailwind
colors: {
  custom: {
    50: '#c8c290',
    500: '#afa962',
    950: '#000000',
  },
}
SCSS
$custom: #afa962;
$custom-light: #c8c290;
$custom-dark: #000000;
JSON
{
  "hex": "#afa962",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 98
  },
  "hsl": {
    "h": 55.325,
    "s": 32.489,
    "l": 53.529
  },
  "oklch": {
    "l": 0.72384,
    "c": 0.09286,
    "h": 104.2
  },
  "luminance": 0.38372
}

Semantic roles & 50–950 ramp

primary
#AFA962
secondary
#A6A8C7
accent
#67C95F
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA962

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

Preview Lab → · Contrast checker → · Palette generator →

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