#AF2FB8#AF2FB8

#AF2FB8 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.6% C 0.222 H 325.1°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#AF2FB8
RGBrgb(175, 47, 184)
HSLhsl(296, 59%, 45%)
HSVhsv(296, 74%, 72%)
CMYKcmyk(4.9%, 74.5%, 0%, 27.8%)
CIE-LABlab(45.09, 66.75, -45.51)
CIE-LCHlch(45.09, 80.79, 325.71°)
OKLaboklab(55.59% 0.1818 -0.1267)
OKLCHoklch(55.59% 0.222 325.1)
XYZxyz(27.3468, 14.6095, 46.7176)
Luminance0.1461 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2FB8 #38B82F
analogous
#6A2FB8 #AF2FB8 #B82F7D
triadic
#AF2FB8 #B8AF2F #2FB8AF
tetradic
#AF2FB8 #B86A2F #38B82F #2F7DB8
square
#AF2FB8 #B86A2F #38B82F #2F7DB8
split-complementary
#AF2FB8 #7DB82F #2FB86A
monochromatic
#521657 #812387 #AF2FB8 #CA52D3 #D982DF

Accessibility & contrast

On white

5.35
#AF2FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#AF2FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2FB8
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2FB8#FFFFFF#000000##FFFFFF
##AF2FB81.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BC
Deuteranopia (green-blind)
#4C70B5
Tritanopia (blue-blind)
#B34772
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af2fb8;
/* rgb */ color: rgb(175, 47, 184);
/* oklch */ color: oklch(55.6% 0.222 325.1);
Tailwind
colors: {
  custom: {
    50: '#cb75ce',
    500: '#af2fb8',
    950: '#000000',
  },
}
SCSS
$custom: #af2fb8;
$custom-light: #cb75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#af2fb8",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 296.058,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55586,
    "c": 0.22162,
    "h": 325.1
  },
  "luminance": 0.14608
}

Semantic roles & 50–950 ramp

primary
#AF2FB8
secondary
#80C87B
accent
#E24550
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AF2FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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