#AF30B8#AF30B8

#AF30B8 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.7% C 0.221 H 325.1°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#AF30B8
RGBrgb(175, 48, 184)
HSLhsl(296, 59%, 45%)
HSVhsv(296, 74%, 72%)
CMYKcmyk(4.9%, 73.9%, 0%, 27.8%)
CIE-LABlab(45.21, 66.42, -45.33)
CIE-LCHlch(45.21, 80.42, 325.69°)
OKLaboklab(55.67% 0.1809 -0.1262)
OKLCHoklch(55.67% 0.221 325.1)
XYZxyz(27.3872, 14.6903, 46.7311)
Luminance0.1469 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF30B8 #39B830
analogous
#6B30B8 #AF30B8 #B8307D
triadic
#AF30B8 #B8AF30 #30B8AF
tetradic
#AF30B8 #B86B30 #39B830 #307DB8
square
#AF30B8 #B86B30 #39B830 #307DB8
split-complementary
#AF30B8 #7DB830 #30B86B
monochromatic
#531757 #812387 #AF30B8 #CA53D2 #D984DF

Accessibility & contrast

On white

5.33
#AF30B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#AF30B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF30B8
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF30B8#FFFFFF#000000##FFFFFF
##AF30B81.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af30b8;
/* rgb */ color: rgb(175, 48, 184);
/* oklch */ color: oklch(55.7% 0.221 325.1);
Tailwind
colors: {
  custom: {
    50: '#cb76ce',
    500: '#af30b8',
    950: '#000000',
  },
}
SCSS
$custom: #af30b8;
$custom-light: #cb76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#af30b8",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 184
  },
  "hsl": {
    "h": 296.029,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55667,
    "c": 0.22059,
    "h": 325.1
  },
  "luminance": 0.14689
}

Semantic roles & 50–950 ramp

primary
#AF30B8
secondary
#81C87C
accent
#E24650
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AF30B8

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

Preview Lab → · Contrast checker → · Palette generator →

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