#AFA762#AFA762

#AFA762 is a light, moderate yellow. Relative luminance 0.376; OKLCH L 72.0% C 0.091 H 102.6°. Best body text is #000000 at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#AFA762
RGBrgb(175, 167, 98)
HSLhsl(54, 32%, 54%)
HSVhsv(54, 44%, 69%)
CMYKcmyk(0%, 4.6%, 44%, 31.4%)
CIE-LABlab(67.75, -7.09, 36.61)
CIE-LCHlch(67.75, 37.30, 100.96°)
OKLaboklab(71.95% -0.0198 0.0885)
OKLCHoklch(71.95% 0.091 102.6)
XYZxyz(33.7032, 37.6342, 17.0417)
Luminance0.3763 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA762 #626AAF
analogous
#AF8062 #AFA762 #90AF62
triadic
#AFA762 #62AFA7 #A762AF
tetradic
#AFA762 #62AF80 #626AAF #AF6290
square
#AFA762 #62AF80 #626AAF #AF6290
split-complementary
#AFA762 #6290AF #8062AF
monochromatic
#645F33 #8C8547 #AFA762 #C4BE8B #D8D4B3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA762#FFFFFF#000000##000000
##AFA7621.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)
#B2A35C
Deuteranopia (green-blind)
#B5A765
Tritanopia (blue-blind)
#B99E96
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa762;
/* rgb */ color: rgb(175, 167, 98);
/* oklch */ color: oklch(72.0% 0.091 102.6);
Tailwind
colors: {
  custom: {
    50: '#c8c190',
    500: '#afa762',
    950: '#000000',
  },
}
SCSS
$custom: #afa762;
$custom-light: #c8c190;
$custom-dark: #000000;
JSON
{
  "hex": "#afa762",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 98
  },
  "hsl": {
    "h": 53.766,
    "s": 32.489,
    "l": 53.529
  },
  "oklch": {
    "l": 0.71952,
    "c": 0.09068,
    "h": 102.6
  },
  "luminance": 0.37633
}

Semantic roles & 50–950 ramp

primary
#AFA762
secondary
#A6A9C7
accent
#6AC95F
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA762

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

Preview Lab → · Contrast checker → · Palette generator →

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