#AFA541#AFA541

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

Color values

HEX#AFA541
RGBrgb(175, 165, 65)
HSLhsl(55, 46%, 47%)
HSVhsv(55, 63%, 69%)
CMYKcmyk(0%, 5.7%, 62.9%, 31.4%)
CIE-LABlab(66.83, -8.86, 51.57)
CIE-LCHlch(66.83, 52.33, 99.75°)
OKLaboklab(71.1% -0.0285 0.1176)
OKLCHoklch(71.1% 0.121 103.6)
XYZxyz(32.0897, 36.4071, 10.3369)
Luminance0.3641 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA541 #414BAF
analogous
#AF6E41 #AFA541 #82AF41
triadic
#AFA541 #41AFA5 #A541AF
tetradic
#AFA541 #41AF6E #414BAF #AF4182
square
#AFA541 #41AF6E #414BAF #AF4182
split-complementary
#AFA541 #4182AF #6E41AF
monochromatic
#565120 #827B30 #AFA541 #C6BE67 #D7D193

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA541#FFFFFF#000000##000000
##AFA5411.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)
#B3A035
Deuteranopia (green-blind)
#B6A547
Tritanopia (blue-blind)
#BC9A90
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa541;
/* rgb */ color: rgb(175, 165, 65);
/* oklch */ color: oklch(71.1% 0.121 103.6);
Tailwind
colors: {
  custom: {
    50: '#cabf7a',
    500: '#afa541',
    950: '#000000',
  },
}
SCSS
$custom: #afa541;
$custom-light: #cabf7a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa541",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 65
  },
  "hsl": {
    "h": 54.545,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.711,
    "c": 0.12103,
    "h": 103.6
  },
  "luminance": 0.36406
}

Semantic roles & 50–950 ramp

primary
#AFA541
secondary
#898FC2
accent
#5ED552
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA541

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

Preview Lab → · Contrast checker → · Palette generator →

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