#AF2EA8#AF2EA8

#AF2EA8 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.6% C 0.210 H 330.4°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#AF2EA8
RGBrgb(175, 46, 168)
HSLhsl(303, 58%, 43%)
HSVhsv(303, 74%, 69%)
CMYKcmyk(0%, 73.7%, 4%, 31.4%)
CIE-LABlab(44.09, 64.44, -37.67)
CIE-LCHlch(44.09, 74.64, 329.69°)
OKLaboklab(54.58% 0.1829 -0.1039)
OKLCHoklch(54.58% 0.21 330.4)
XYZxyz(25.7240, 13.8971, 38.3658)
Luminance0.1389 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2EA8 #2EAF35
analogous
#752EAF #AF2EA8 #AF2E67
triadic
#AF2EA8 #A8AF2E #2EA8AF
tetradic
#AF2EA8 #AF752E #2EAF35 #2E67AF
square
#AF2EA8 #AF752E #2EAF35 #2E67AF
split-complementary
#AF2EA8 #67AF2E #2EAF75
monochromatic
#4E154B #7F2179 #AF2EA8 #D04BC8 #DC7BD7

Accessibility & contrast

On white

5.56
#AF2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#AF2EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2EA8
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2EA8#FFFFFF#000000##FFFFFF
##AF2EA81.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5DAB
Deuteranopia (green-blind)
#556EA5
Tritanopia (blue-blind)
#B63F69
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2ea8;
/* rgb */ color: rgb(175, 46, 168);
/* oklch */ color: oklch(54.6% 0.210 330.4);
Tailwind
colors: {
  custom: {
    50: '#cb74c2',
    500: '#af2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #af2ea8;
$custom-light: #cb74c2;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ea8",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 303.256,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54576,
    "c": 0.21035,
    "h": 330.4
  },
  "luminance": 0.13895
}

Semantic roles & 50–950 ramp

primary
#AF2EA8
secondary
#74C578
accent
#E24F46
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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