#AF2FB7#AF2FB7

#AF2FB7 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.5% C 0.221 H 325.4°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#AF2FB7
RGBrgb(175, 47, 183)
HSLhsl(296, 59%, 45%)
HSVhsv(296, 74%, 72%)
CMYKcmyk(4.4%, 74.3%, 0%, 28.2%)
CIE-LABlab(45.04, 66.58, -45.02)
CIE-LCHlch(45.04, 80.37, 325.93°)
OKLaboklab(55.53% 0.1819 -0.1253)
OKLCHoklch(55.53% 0.221 325.4)
XYZxyz(27.2423, 14.5677, 46.1675)
Luminance0.1457 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2FB7 #37B72F
analogous
#6B2FB7 #AF2FB7 #B72F7B
triadic
#AF2FB7 #B7AF2F #2FB7AF
tetradic
#AF2FB7 #B76B2F #37B72F #2F7BB7
square
#AF2FB7 #B76B2F #37B72F #2F7BB7
split-complementary
#AF2FB7 #7BB72F #2FB76B
monochromatic
#521656 #802286 #AF2FB7 #CB51D2 #D982DF

Accessibility & contrast

On white

5.37
#AF2FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#AF2FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2FB7
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2FB7#FFFFFF#000000##FFFFFF
##AF2FB71.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BB
Deuteranopia (green-blind)
#4D70B4
Tritanopia (blue-blind)
#B34771
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af2fb7;
/* rgb */ color: rgb(175, 47, 183);
/* oklch */ color: oklch(55.5% 0.221 325.4);
Tailwind
colors: {
  custom: {
    50: '#cb75cd',
    500: '#af2fb7',
    950: '#000000',
  },
}
SCSS
$custom: #af2fb7;
$custom-light: #cb75cd;
$custom-dark: #000000;
JSON
{
  "hex": "#af2fb7",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 296.471,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55526,
    "c": 0.22083,
    "h": 325.4
  },
  "luminance": 0.14566
}

Semantic roles & 50–950 ramp

primary
#AF2FB7
secondary
#7FC87A
accent
#E2454F
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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