#AF2FB6#AF2FB6

#AF2FB6 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.5% C 0.220 H 325.7°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#AF2FB6
RGBrgb(175, 47, 182)
HSLhsl(297, 59%, 45%)
HSVhsv(297, 74%, 71%)
CMYKcmyk(3.8%, 74.2%, 0%, 28.6%)
CIE-LABlab(44.98, 66.41, -44.52)
CIE-LCHlch(44.98, 79.95, 326.16°)
OKLaboklab(55.47% 0.1819 -0.1238)
OKLCHoklch(55.47% 0.22 325.7)
XYZxyz(27.1386, 14.5262, 45.6213)
Luminance0.1452 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2FB6 #36B62F
analogous
#6C2FB6 #AF2FB6 #B62F79
triadic
#AF2FB6 #B6AF2F #2FB6AF
tetradic
#AF2FB6 #B66C2F #36B62F #2F79B6
square
#AF2FB6 #B66C2F #36B62F #2F79B6
split-complementary
#AF2FB6 #79B62F #2FB66C
monochromatic
#511655 #802285 #AF2FB6 #CB50D2 #DA81DE

Accessibility & contrast

On white

5.38
#AF2FB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#AF2FB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2FB6
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2FB6#FFFFFF#000000##FFFFFF
##AF2FB61.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BA
Deuteranopia (green-blind)
#4E70B3
Tritanopia (blue-blind)
#B34671
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af2fb6;
/* rgb */ color: rgb(175, 47, 182);
/* oklch */ color: oklch(55.5% 0.220 325.7);
Tailwind
colors: {
  custom: {
    50: '#cb75cc',
    500: '#af2fb6',
    950: '#000000',
  },
}
SCSS
$custom: #af2fb6;
$custom-light: #cb75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#af2fb6",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 296.889,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55466,
    "c": 0.22005,
    "h": 325.7
  },
  "luminance": 0.14524
}

Semantic roles & 50–950 ramp

primary
#AF2FB6
secondary
#7DC779
accent
#E2464E
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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