#AF2E9D#AF2E9D

#AF2E9D is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.0% C 0.202 H 334.3°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#AF2E9D
RGBrgb(175, 46, 157)
HSLhsl(308, 58%, 43%)
HSVhsv(308, 74%, 69%)
CMYKcmyk(0%, 73.7%, 10.3%, 31.4%)
CIE-LABlab(43.51, 62.73, -32.00)
CIE-LCHlch(43.51, 70.42, 332.97°)
OKLaboklab(53.98% 0.1824 -0.0876)
OKLCHoklch(53.98% 0.202 334.3)
XYZxyz(24.7422, 13.5044, 33.1953)
Luminance0.1350 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E9D #2EAF40
analogous
#802EAF #AF2E9D #AF2E5C
triadic
#AF2E9D #9DAF2E #2E9DAF
tetradic
#AF2E9D #AF802E #2EAF40 #2E5CAF
square
#AF2E9D #AF802E #2EAF40 #2E5CAF
split-complementary
#AF2E9D #5CAF2E #2EAF80
monochromatic
#4E1546 #7F2172 #AF2E9D #D04BBD #DC7BCF

Accessibility & contrast

On white

5.68
#AF2E9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#AF2E9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2E9D
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E9D#FFFFFF#000000##FFFFFF
##AF2E9D1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5BA0
Deuteranopia (green-blind)
#5B6E9A
Tritanopia (blue-blind)
#B73962
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2e9d;
/* rgb */ color: rgb(175, 46, 157);
/* oklch */ color: oklch(54.0% 0.202 334.3);
Tailwind
colors: {
  custom: {
    50: '#cb74ba',
    500: '#af2e9d',
    950: '#000000',
  },
}
SCSS
$custom: #af2e9d;
$custom-light: #cb74ba;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e9d",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 308.372,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.5398,
    "c": 0.2023,
    "h": 334.3
  },
  "luminance": 0.13502
}

Semantic roles & 50–950 ramp

primary
#AF2E9D
secondary
#74C57F
accent
#E25C46
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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