#AF46DB#AF46DB

#AF46DB is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 59.9% C 0.226 H 314.1°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#AF46DB
RGBrgb(175, 70, 219)
HSLhsl(282, 67%, 57%)
HSVhsv(282, 68%, 86%)
CMYKcmyk(20.1%, 68%, 0%, 14.1%)
CIE-LABlab(50.23, 64.72, -57.50)
CIE-LCHlch(50.23, 86.58, 318.38°)
OKLaboklab(59.93% 0.157 -0.162)
OKLCHoklch(59.93% 0.226 314.1)
XYZxyz(32.6534, 18.6098, 68.8761)
Luminance0.1861 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF46DB #72DB46
analogous
#6546DB #AF46DB #DB46BD
triadic
#AF46DB #DBAF46 #46DBAF
tetradic
#AF46DB #DB6546 #72DB46 #46BDDB
square
#AF46DB #DB6546 #72DB46 #46BDDB
split-complementary
#AF46DB #BDDB46 #46DB65
monochromatic
#6A1B8B #9125BF #AF46DB #C579E5 #DBACEF

Accessibility & contrast

On white

4.45
#AF46DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#AF46DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF46DB
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF46DB#FFFFFF#000000##000000
##AF46DB1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072DF
Deuteranopia (green-blind)
#3E7AD8
Tritanopia (blue-blind)
#AB648B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af46db;
/* rgb */ color: rgb(175, 70, 219);
/* oklch */ color: oklch(59.9% 0.226 314.1);
Tailwind
colors: {
  custom: {
    50: '#cb81e7',
    500: '#af46db',
    950: '#000000',
  },
}
SCSS
$custom: #af46db;
$custom-light: #cb81e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af46db",
  "rgb": {
    "r": 175,
    "g": 70,
    "b": 219
  },
  "hsl": {
    "h": 282.282,
    "s": 67.421,
    "l": 56.667
  },
  "oklch": {
    "l": 0.59931,
    "c": 0.22557,
    "h": 314.1
  },
  "luminance": 0.18609
}

Semantic roles & 50–950 ramp

primary
#AF46DB
secondary
#B2DDA0
accent
#EA3D71
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF46DB

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

Preview Lab → · Contrast checker → · Palette generator →

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