#AF30B9#AF30B9

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

Color values

HEX#AF30B9
RGBrgb(175, 48, 185)
HSLhsl(296, 59%, 46%)
HSVhsv(296, 74%, 73%)
CMYKcmyk(5.4%, 74.1%, 0%, 27.5%)
CIE-LABlab(45.27, 66.59, -45.83)
CIE-LCHlch(45.27, 80.84, 325.47°)
OKLaboklab(55.73% 0.1809 -0.1277)
OKLCHoklch(55.73% 0.221 324.8)
XYZxyz(27.4924, 14.7324, 47.2851)
Luminance0.1473 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF30B9 #3AB930
analogous
#6A30B9 #AF30B9 #B9307F
triadic
#AF30B9 #B9AF30 #30B9AF
tetradic
#AF30B9 #B96A30 #3AB930 #307FB9
square
#AF30B9 #B96A30 #3AB930 #307FB9
split-complementary
#AF30B9 #7FB930 #30B96A
monochromatic
#531758 #812388 #AF30B9 #C954D3 #D984DF

Accessibility & contrast

On white

5.32
#AF30B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#AF30B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF30B9
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF30B9#FFFFFF#000000##FFFFFF
##AF30B91.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BD
Deuteranopia (green-blind)
#4C70B6
Tritanopia (blue-blind)
#B34873
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af30b9;
/* rgb */ color: rgb(175, 48, 185);
/* oklch */ color: oklch(55.7% 0.221 324.8);
Tailwind
colors: {
  custom: {
    50: '#cb76cf',
    500: '#af30b9',
    950: '#000000',
  },
}
SCSS
$custom: #af30b9;
$custom-light: #cb76cf;
$custom-dark: #000000;
JSON
{
  "hex": "#af30b9",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 185
  },
  "hsl": {
    "h": 295.62,
    "s": 58.798,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55727,
    "c": 0.22139,
    "h": 324.8
  },
  "luminance": 0.14731
}

Semantic roles & 50–950 ramp

primary
#AF30B9
secondary
#82C97C
accent
#E24651
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AF30B9

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

Preview Lab → · Contrast checker → · Palette generator →

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