#AFA062#AFA062

#AFA062 is a light, moderate yellow. Relative luminance 0.351; OKLCH L 70.5% C 0.084 H 96.2°. Best body text is #000000 at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#AFA062
RGBrgb(175, 160, 98)
HSLhsl(48, 32%, 54%)
HSVhsv(48, 44%, 69%)
CMYKcmyk(0%, 8.6%, 44%, 31.4%)
CIE-LABlab(65.86, -3.35, 34.23)
CIE-LCHlch(65.86, 34.40, 95.59°)
OKLaboklab(70.45% -0.009 0.0831)
OKLCHoklch(70.45% 0.084 96.2)
XYZxyz(32.4554, 35.1386, 16.6257)
Luminance0.3514 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA062 #6271AF
analogous
#AF7962 #AFA062 #97AF62
triadic
#AFA062 #62AFA0 #A062AF
tetradic
#AFA062 #62AF79 #6271AF #AF6297
square
#AFA062 #62AF79 #6271AF #AF6297
split-complementary
#AFA062 #6297AF #7962AF
monochromatic
#645A33 #8C7F47 #AFA062 #C4B98B #D8D1B3

Accessibility & contrast

On white

2.62
#AFA062 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.03
#AFA062 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA062
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA062#FFFFFF#000000##000000
##AFA0621.002.628.038.03
#FFFFFF2.621.0021.0021.00
#0000008.0321.001.001.00
##0000008.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9D5D
Deuteranopia (green-blind)
#B0A264
Tritanopia (blue-blind)
#BA9791
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa062;
/* rgb */ color: rgb(175, 160, 98);
/* oklch */ color: oklch(70.5% 0.084 96.2);
Tailwind
colors: {
  custom: {
    50: '#c8bb8f',
    500: '#afa062',
    950: '#000000',
  },
}
SCSS
$custom: #afa062;
$custom-light: #c8bb8f;
$custom-dark: #000000;
JSON
{
  "hex": "#afa062",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 98
  },
  "hsl": {
    "h": 48.312,
    "s": 32.489,
    "l": 53.529
  },
  "oklch": {
    "l": 0.70453,
    "c": 0.0836,
    "h": 96.2
  },
  "luminance": 0.35137
}

Semantic roles & 50–950 ramp

primary
#AFA062
secondary
#A6ACC7
accent
#74C95F
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13110C
muted
#82807D

Preview Lab

Preview with #AFA062

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

Preview Lab → · Contrast checker → · Palette generator →

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