#AF30B4#AF30B4

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

Color values

HEX#AF30B4
RGBrgb(175, 48, 180)
HSLhsl(298, 58%, 45%)
HSVhsv(298, 73%, 71%)
CMYKcmyk(2.8%, 73.3%, 0%, 29.4%)
CIE-LABlab(44.98, 65.75, -43.35)
CIE-LCHlch(44.98, 78.75, 326.60°)
OKLaboklab(55.43% 0.1811 -0.1204)
OKLCHoklch(55.43% 0.217 326.4)
XYZxyz(26.9739, 14.5250, 44.5540)
Luminance0.1452 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF30B4 #35B430
analogous
#6D30B4 #AF30B4 #B43077
triadic
#AF30B4 #B4AF30 #30B4AF
tetradic
#AF30B4 #B46D30 #35B430 #3077B4
square
#AF30B4 #B46D30 #35B430 #3077B4
split-complementary
#AF30B4 #77B430 #30B46D
monochromatic
#511653 #802384 #AF30B4 #CC51D1 #DA81DD

Accessibility & contrast

On white

5.38
#AF30B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF30B4
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF30B4#FFFFFF#000000##FFFFFF
##AF30B41.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A60B8
Deuteranopia (green-blind)
#4F70B1
Tritanopia (blue-blind)
#B44670
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af30b4;
/* rgb */ color: rgb(175, 48, 180);
/* oklch */ color: oklch(55.4% 0.217 326.4);
Tailwind
colors: {
  custom: {
    50: '#cb76cb',
    500: '#af30b4',
    950: '#000000',
  },
}
SCSS
$custom: #af30b4;
$custom-light: #cb76cb;
$custom-dark: #000000;
JSON
{
  "hex": "#af30b4",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 180
  },
  "hsl": {
    "h": 297.727,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55428,
    "c": 0.21745,
    "h": 326.4
  },
  "luminance": 0.14523
}

Semantic roles & 50–950 ramp

primary
#AF30B4
secondary
#7CC679
accent
#E1474D
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF30B4

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

Preview Lab → · Contrast checker → · Palette generator →

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