#AF30B7#AF30B7

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

Color values

HEX#AF30B7
RGBrgb(175, 48, 183)
HSLhsl(296, 58%, 45%)
HSVhsv(296, 74%, 72%)
CMYKcmyk(4.4%, 73.8%, 0%, 28.2%)
CIE-LABlab(45.15, 66.25, -44.84)
CIE-LCHlch(45.15, 80.00, 325.91°)
OKLaboklab(55.61% 0.181 -0.1248)
OKLCHoklch(55.61% 0.22 325.4)
XYZxyz(27.2828, 14.6486, 46.1810)
Luminance0.1465 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF30B7 #38B730
analogous
#6B30B7 #AF30B7 #B7307C
triadic
#AF30B7 #B7AF30 #30B7AF
tetradic
#AF30B7 #B76B30 #38B730 #307CB7
square
#AF30B7 #B76B30 #38B730 #307CB7
split-complementary
#AF30B7 #7CB730 #30B76B
monochromatic
#521756 #812387 #AF30B7 #CA52D2 #D983DE

Accessibility & contrast

On white

5.34
#AF30B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#AF30B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF30B7
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF30B7#FFFFFF#000000##FFFFFF
##AF30B71.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.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: #af30b7;
/* rgb */ color: rgb(175, 48, 183);
/* oklch */ color: oklch(55.6% 0.220 325.4);
Tailwind
colors: {
  custom: {
    50: '#cb76cd',
    500: '#af30b7',
    950: '#000000',
  },
}
SCSS
$custom: #af30b7;
$custom-light: #cb76cd;
$custom-dark: #000000;
JSON
{
  "hex": "#af30b7",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 183
  },
  "hsl": {
    "h": 296.444,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55606,
    "c": 0.2198,
    "h": 325.4
  },
  "luminance": 0.14647
}

Semantic roles & 50–950 ramp

primary
#AF30B7
secondary
#80C87B
accent
#E2464F
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AF30B7

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

Preview Lab → · Contrast checker → · Palette generator →

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