#AFA642#AFA642

#AFA642 is a light, vivid yellow. Relative luminance 0.368; OKLCH L 71.3% C 0.121 H 104.2°. Best body text is #000000 at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#AFA642
RGBrgb(175, 166, 66)
HSLhsl(55, 45%, 47%)
HSVhsv(55, 62%, 69%)
CMYKcmyk(0%, 5.1%, 62.3%, 31.4%)
CIE-LABlab(67.11, -9.32, 51.43)
CIE-LCHlch(67.11, 52.27, 100.28°)
OKLaboklab(71.33% -0.0297 0.1175)
OKLCHoklch(71.33% 0.121 104.2)
XYZxyz(32.2999, 36.7809, 10.5512)
Luminance0.3678 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA642 #424BAF
analogous
#AF7042 #AFA642 #81AF42
triadic
#AFA642 #42AFA6 #A642AF
tetradic
#AFA642 #42AF70 #424BAF #AF4281
square
#AFA642 #42AF70 #424BAF #AF4281
split-complementary
#AFA642 #4281AF #7042AF
monochromatic
#565220 #837C31 #AFA642 #C6BE68 #D7D195

Accessibility & contrast

On white

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

On black

8.36
#AFA642 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA642
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA642#FFFFFF#000000##000000
##AFA6421.002.518.368.36
#FFFFFF2.511.0021.0021.00
#0000008.3621.001.001.00
##0000008.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A136
Deuteranopia (green-blind)
#B7A648
Tritanopia (blue-blind)
#BB9B91
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa642;
/* rgb */ color: rgb(175, 166, 66);
/* oklch */ color: oklch(71.3% 0.121 104.2);
Tailwind
colors: {
  custom: {
    50: '#cac07b',
    500: '#afa642',
    950: '#000000',
  },
}
SCSS
$custom: #afa642;
$custom-light: #cac07b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa642",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 66
  },
  "hsl": {
    "h": 55.046,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.71328,
    "c": 0.12117,
    "h": 104.2
  },
  "luminance": 0.3678
}

Semantic roles & 50–950 ramp

primary
#AFA642
secondary
#8A8FC2
accent
#5ED553
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFA642

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

Preview Lab → · Contrast checker → · Palette generator →

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