#AF2CA6#AF2CA6

#AF2CA6 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.3% C 0.211 H 331.1°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#AF2CA6
RGBrgb(175, 44, 166)
HSLhsl(304, 60%, 43%)
HSVhsv(304, 75%, 69%)
CMYKcmyk(0%, 74.9%, 5.1%, 31.4%)
CIE-LABlab(43.76, 64.75, -37.00)
CIE-LCHlch(43.76, 74.58, 330.26°)
OKLaboklab(54.31% 0.1847 -0.102)
OKLCHoklch(54.31% 0.211 331.1)
XYZxyz(25.4628, 13.6705, 37.3666)
Luminance0.1367 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2CA6 #2CAF35
analogous
#762CAF #AF2CA6 #AF2C64
triadic
#AF2CA6 #A6AF2C #2CA6AF
tetradic
#AF2CA6 #AF762C #2CAF35 #2C64AF
square
#AF2CA6 #AF762C #2CAF35 #2C64AF
split-complementary
#AF2CA6 #64AF2C #2CAF76
monochromatic
#4D1349 #7E2078 #AF2CA6 #D147C7 #DD78D6

Accessibility & contrast

On white

5.62
#AF2CA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#AF2CA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2CA6
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2CA6#FFFFFF#000000##FFFFFF
##AF2CA61.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5CA9
Deuteranopia (green-blind)
#566EA3
Tritanopia (blue-blind)
#B63D67
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2ca6;
/* rgb */ color: rgb(175, 44, 166);
/* oklch */ color: oklch(54.3% 0.211 331.1);
Tailwind
colors: {
  custom: {
    50: '#cb73c1',
    500: '#af2ca6',
    950: '#000000',
  },
}
SCSS
$custom: #af2ca6;
$custom-light: #cb73c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ca6",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 304.122,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54306,
    "c": 0.21095,
    "h": 331.1
  },
  "luminance": 0.13668
}

Semantic roles & 50–950 ramp

primary
#AF2CA6
secondary
#72C577
accent
#E35045
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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