#AF30B3#AF30B3

#AF30B3 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.4% C 0.217 H 326.7°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#AF30B3
RGBrgb(175, 48, 179)
HSLhsl(298, 58%, 45%)
HSVhsv(298, 73%, 70%)
CMYKcmyk(2.2%, 73.2%, 0%, 29.8%)
CIE-LABlab(44.92, 65.58, -42.85)
CIE-LCHlch(44.92, 78.34, 326.84°)
OKLaboklab(55.37% 0.1811 -0.119)
OKLCHoklch(55.37% 0.217 326.7)
XYZxyz(26.8724, 14.4844, 44.0195)
Luminance0.1448 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF30B3 #34B330
analogous
#6E30B3 #AF30B3 #B33076
triadic
#AF30B3 #B3AF30 #30B3AF
tetradic
#AF30B3 #B36E30 #34B330 #3076B3
square
#AF30B3 #B36E30 #34B330 #3076B3
split-complementary
#AF30B3 #76B330 #30B36E
monochromatic
#511652 #802383 #AF30B3 #CC50D0 #DA80DD

Accessibility & contrast

On white

5.39
#AF30B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#AF30B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF30B3
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF30B3#FFFFFF#000000##FFFFFF
##AF30B31.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D60B7
Deuteranopia (green-blind)
#5070B0
Tritanopia (blue-blind)
#B4466F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af30b3;
/* rgb */ color: rgb(175, 48, 179);
/* oklch */ color: oklch(55.4% 0.217 326.7);
Tailwind
colors: {
  custom: {
    50: '#cb75ca',
    500: '#af30b3',
    950: '#000000',
  },
}
SCSS
$custom: #af30b3;
$custom-light: #cb75ca;
$custom-dark: #000000;
JSON
{
  "hex": "#af30b3",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 179
  },
  "hsl": {
    "h": 298.168,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55369,
    "c": 0.21667,
    "h": 326.7
  },
  "luminance": 0.14483
}

Semantic roles & 50–950 ramp

primary
#AF30B3
secondary
#7BC679
accent
#E1474C
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF30B3

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

Preview Lab → · Contrast checker → · Palette generator →

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