#AF2EA4#AF2EA4

#AF2EA4 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.4% C 0.207 H 331.8°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#AF2EA4
RGBrgb(175, 46, 164)
HSLhsl(305, 58%, 43%)
HSVhsv(305, 74%, 69%)
CMYKcmyk(0%, 73.7%, 6.3%, 31.4%)
CIE-LABlab(43.87, 63.80, -35.62)
CIE-LCHlch(43.87, 73.07, 330.83°)
OKLaboklab(54.36% 0.1828 -0.098)
OKLCHoklch(54.36% 0.207 331.8)
XYZxyz(25.3571, 13.7504, 36.4333)
Luminance0.1375 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2EA4 #2EAF39
analogous
#792EAF #AF2EA4 #AF2E63
triadic
#AF2EA4 #A4AF2E #2EA4AF
tetradic
#AF2EA4 #AF792E #2EAF39 #2E63AF
square
#AF2EA4 #AF792E #2EAF39 #2E63AF
split-complementary
#AF2EA4 #63AF2E #2EAF79
monochromatic
#4E1549 #7F2177 #AF2EA4 #D04BC4 #DC7BD4

Accessibility & contrast

On white

5.60
#AF2EA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#AF2EA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2EA4
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2EA4#FFFFFF#000000##FFFFFF
##AF2EA41.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245CA7
Deuteranopia (green-blind)
#576EA1
Tritanopia (blue-blind)
#B63D66
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2ea4;
/* rgb */ color: rgb(175, 46, 164);
/* oklch */ color: oklch(54.4% 0.207 331.8);
Tailwind
colors: {
  custom: {
    50: '#cb74bf',
    500: '#af2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #af2ea4;
$custom-light: #cb74bf;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ea4",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 305.116,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54355,
    "c": 0.20738,
    "h": 331.8
  },
  "luminance": 0.13748
}

Semantic roles & 50–950 ramp

primary
#AF2EA4
secondary
#74C57B
accent
#E25346
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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