#AFAF41#AFAF41

#AFAF41 is a light, vivid yellow. Relative luminance 0.402; OKLCH L 73.3% C 0.131 H 109.2°. Best body text is #000000 at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#AFAF41
RGBrgb(175, 175, 65)
HSLhsl(60, 46%, 47%)
HSVhsv(60, 63%, 69%)
CMYKcmyk(0%, 0%, 62.9%, 31.4%)
CIE-LABlab(69.58, -14.07, 54.51)
CIE-LCHlch(69.58, 56.30, 104.47°)
OKLaboklab(73.29% -0.0432 0.1239)
OKLCHoklch(73.29% 0.131 109.2)
XYZxyz(33.9644, 40.1565, 10.9618)
Luminance0.4016 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF41 #4141AF
analogous
#AF7841 #AFAF41 #78AF41
triadic
#AFAF41 #41AFAF #AF41AF
tetradic
#AFAF41 #41AF78 #4141AF #AF4178
square
#AFAF41 #41AF78 #4141AF #AF4178
split-complementary
#AFAF41 #4178AF #7841AF
monochromatic
#565620 #828230 #AFAF41 #C6C667 #D7D793

Accessibility & contrast

On white

2.33
#AFAF41 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.03
#AFAF41 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF41
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF41#FFFFFF#000000##000000
##AFAF411.002.339.039.03
#FFFFFF2.331.0021.0021.00
#0000009.0321.001.001.00
##0000009.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA833
Deuteranopia (green-blind)
#BEAC48
Tritanopia (blue-blind)
#BBA498
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afaf41;
/* rgb */ color: rgb(175, 175, 65);
/* oklch */ color: oklch(73.3% 0.131 109.2);
Tailwind
colors: {
  custom: {
    50: '#cac67b',
    500: '#afaf41',
    950: '#000000',
  },
}
SCSS
$custom: #afaf41;
$custom-light: #cac67b;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf41",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 65
  },
  "hsl": {
    "h": 60,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.73291,
    "c": 0.13118,
    "h": 109.2
  },
  "luminance": 0.40156
}

Semantic roles & 50–950 ramp

primary
#AFAF41
secondary
#8989C2
accent
#52D552
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFAF41

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

Preview Lab → · Contrast checker → · Palette generator →

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