#AFA462#AFA462

#AFA462 is a light, moderate yellow. Relative luminance 0.365; OKLCH L 71.3% C 0.088 H 100.0°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#AFA462
RGBrgb(175, 164, 98)
HSLhsl(51, 32%, 54%)
HSVhsv(51, 44%, 69%)
CMYKcmyk(0%, 6.3%, 44%, 31.4%)
CIE-LABlab(66.94, -5.50, 35.59)
CIE-LCHlch(66.94, 36.02, 98.78°)
OKLaboklab(71.31% -0.0152 0.0862)
OKLCHoklch(71.31% 0.088 100)
XYZxyz(33.1600, 36.5478, 16.8606)
Luminance0.3655 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA462 #626DAF
analogous
#AF7D62 #AFA462 #93AF62
triadic
#AFA462 #62AFA4 #A462AF
tetradic
#AFA462 #62AF7D #626DAF #AF6293
square
#AFA462 #62AF7D #626DAF #AF6293
split-complementary
#AFA462 #6293AF #7D62AF
monochromatic
#645D33 #8C8247 #AFA462 #C4BB8B #D8D3B3

Accessibility & contrast

On white

2.53
#AFA462 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.31
#AFA462 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA462
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA462#FFFFFF#000000##000000
##AFA4621.002.538.318.31
#FFFFFF2.531.0021.0021.00
#0000008.3121.001.001.00
##0000008.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AFA05D
Deuteranopia (green-blind)
#B3A565
Tritanopia (blue-blind)
#B99B94
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa462;
/* rgb */ color: rgb(175, 164, 98);
/* oklch */ color: oklch(71.3% 0.088 100.0);
Tailwind
colors: {
  custom: {
    50: '#c8be90',
    500: '#afa462',
    950: '#000000',
  },
}
SCSS
$custom: #afa462;
$custom-light: #c8be90;
$custom-dark: #000000;
JSON
{
  "hex": "#afa462",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 98
  },
  "hsl": {
    "h": 51.429,
    "s": 32.489,
    "l": 53.529
  },
  "oklch": {
    "l": 0.71307,
    "c": 0.08752,
    "h": 100
  },
  "luminance": 0.36547
}

Semantic roles & 50–950 ramp

primary
#AFA462
secondary
#A6ABC7
accent
#6EC95F
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA462

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

Preview Lab → · Contrast checker → · Palette generator →

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