#AFA542#AFA542

#AFA542 is a light, vivid yellow. Relative luminance 0.364; OKLCH L 71.1% C 0.120 H 103.6°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#AFA542
RGBrgb(175, 165, 66)
HSLhsl(54, 45%, 47%)
HSVhsv(54, 62%, 69%)
CMYKcmyk(0%, 5.7%, 62.3%, 31.4%)
CIE-LABlab(66.84, -8.80, 51.14)
CIE-LCHlch(66.84, 51.89, 99.76°)
OKLaboklab(71.11% -0.0282 0.1169)
OKLCHoklch(71.11% 0.12 103.6)
XYZxyz(32.1189, 36.4188, 10.4909)
Luminance0.3642 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA542 #424CAF
analogous
#AF6E42 #AFA542 #83AF42
triadic
#AFA542 #42AFA5 #A542AF
tetradic
#AFA542 #42AF6E #424CAF #AF4283
square
#AFA542 #42AF6E #424CAF #AF4283
split-complementary
#AFA542 #4283AF #6E42AF
monochromatic
#565120 #837B31 #AFA542 #C6BD68 #D7D195

Accessibility & contrast

On white

2.54
#AFA542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.28
#AFA542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA542
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA542#FFFFFF#000000##000000
##AFA5421.002.548.288.28
#FFFFFF2.541.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A037
Deuteranopia (green-blind)
#B6A547
Tritanopia (blue-blind)
#BB9A90
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa542;
/* rgb */ color: rgb(175, 165, 66);
/* oklch */ color: oklch(71.1% 0.120 103.6);
Tailwind
colors: {
  custom: {
    50: '#cabf7b',
    500: '#afa542',
    950: '#000000',
  },
}
SCSS
$custom: #afa542;
$custom-light: #cabf7b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa542",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 66
  },
  "hsl": {
    "h": 54.495,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.7111,
    "c": 0.1202,
    "h": 103.6
  },
  "luminance": 0.36418
}

Semantic roles & 50–950 ramp

primary
#AFA542
secondary
#8A8FC2
accent
#5FD553
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFA542

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

Preview Lab → · Contrast checker → · Palette generator →

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