#AF30BD#AF30BD

#AF30BD is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 56.0% C 0.225 H 323.6°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#AF30BD
RGBrgb(175, 48, 189)
HSLhsl(294, 59%, 46%)
HSVhsv(294, 75%, 74%)
CMYKcmyk(7.4%, 74.6%, 0%, 25.9%)
CIE-LABlab(45.50, 67.28, -47.79)
CIE-LCHlch(45.50, 82.53, 324.62°)
OKLaboklab(55.97% 0.1807 -0.1334)
OKLCHoklch(55.97% 0.225 323.6)
XYZxyz(27.9206, 14.9037, 49.5403)
Luminance0.1490 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF30BD #3EBD30
analogous
#6930BD #AF30BD #BD3085
triadic
#AF30BD #BDAF30 #30BDAF
tetradic
#AF30BD #BD6930 #3EBD30 #3085BD
square
#AF30BD #BD6930 #3EBD30 #3085BD
split-complementary
#AF30BD #85BD30 #30BD69
monochromatic
#55175B #82248C #AF30BD #C856D4 #D887E0

Accessibility & contrast

On white

5.28
#AF30BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#AF30BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF30BD
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF30BD#FFFFFF#000000##FFFFFF
##AF30BD1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C1
Deuteranopia (green-blind)
#4971BA
Tritanopia (blue-blind)
#B24A75
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af30bd;
/* rgb */ color: rgb(175, 48, 189);
/* oklch */ color: oklch(56.0% 0.225 323.6);
Tailwind
colors: {
  custom: {
    50: '#cb76d1',
    500: '#af30bd',
    950: '#000000',
  },
}
SCSS
$custom: #af30bd;
$custom-light: #cb76d1;
$custom-dark: #000000;
JSON
{
  "hex": "#af30bd",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 189
  },
  "hsl": {
    "h": 294.043,
    "s": 59.494,
    "l": 46.471
  },
  "oklch": {
    "l": 0.55971,
    "c": 0.22457,
    "h": 323.6
  },
  "luminance": 0.14902
}

Semantic roles & 50–950 ramp

primary
#AF30BD
secondary
#86CA7F
accent
#E34555
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AF30BD

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

Preview Lab → · Contrast checker → · Palette generator →

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