#AF2EA6#AF2EA6

#AF2EA6 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.5% C 0.209 H 331.1°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#AF2EA6
RGBrgb(175, 46, 166)
HSLhsl(304, 58%, 43%)
HSVhsv(304, 74%, 69%)
CMYKcmyk(0%, 73.7%, 5.1%, 31.4%)
CIE-LABlab(43.98, 64.12, -36.65)
CIE-LCHlch(43.98, 73.85, 330.25°)
OKLaboklab(54.46% 0.1828 -0.101)
OKLCHoklch(54.46% 0.209 331.1)
XYZxyz(25.5391, 13.8232, 37.3920)
Luminance0.1382 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2EA6 #2EAF37
analogous
#772EAF #AF2EA6 #AF2E65
triadic
#AF2EA6 #A6AF2E #2EA6AF
tetradic
#AF2EA6 #AF772E #2EAF37 #2E65AF
square
#AF2EA6 #AF772E #2EAF37 #2E65AF
split-complementary
#AF2EA6 #65AF2E #2EAF77
monochromatic
#4E154A #7F2178 #AF2EA6 #D04BC6 #DC7BD6

Accessibility & contrast

On white

5.58
#AF2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#AF2EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2EA6
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2EA6#FFFFFF#000000##FFFFFF
##AF2EA61.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225DA9
Deuteranopia (green-blind)
#566EA3
Tritanopia (blue-blind)
#B63E67
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2ea6;
/* rgb */ color: rgb(175, 46, 166);
/* oklch */ color: oklch(54.5% 0.209 331.1);
Tailwind
colors: {
  custom: {
    50: '#cb74c1',
    500: '#af2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #af2ea6;
$custom-light: #cb74c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ea6",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 304.186,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54464,
    "c": 0.20887,
    "h": 331.1
  },
  "luminance": 0.13821
}

Semantic roles & 50–950 ramp

primary
#AF2EA6
secondary
#74C57A
accent
#E25146
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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