#AF45DB#AF45DB

#AF45DB is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 59.8% C 0.227 H 314.2°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#AF45DB
RGBrgb(175, 69, 219)
HSLhsl(282, 68%, 56%)
HSVhsv(282, 68%, 86%)
CMYKcmyk(20.1%, 68.5%, 0%, 14.1%)
CIE-LABlab(50.08, 65.14, -57.74)
CIE-LCHlch(50.08, 87.04, 318.45°)
OKLaboklab(59.83% 0.1581 -0.1626)
OKLCHoklch(59.83% 0.227 314.2)
XYZxyz(32.5913, 18.4857, 68.8554)
Luminance0.1848 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45DB #71DB45
analogous
#6445DB #AF45DB #DB45BC
triadic
#AF45DB #DBAF45 #45DBAF
tetradic
#AF45DB #DB6445 #71DB45 #45BCDB
square
#AF45DB #DB6445 #71DB45 #45BCDB
split-complementary
#AF45DB #BCDB45 #45DB64
monochromatic
#6A1B8B #9125BE #AF45DB #C578E5 #DBACEF

Accessibility & contrast

On white

4.47
#AF45DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#AF45DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF45DB
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45DB#FFFFFF#000000##000000
##AF45DB1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af45db;
/* rgb */ color: rgb(175, 69, 219);
/* oklch */ color: oklch(59.8% 0.227 314.2);
Tailwind
colors: {
  custom: {
    50: '#cb81e7',
    500: '#af45db',
    950: '#000000',
  },
}
SCSS
$custom: #af45db;
$custom-light: #cb81e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af45db",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 219
  },
  "hsl": {
    "h": 282.4,
    "s": 67.568,
    "l": 56.471
  },
  "oklch": {
    "l": 0.59825,
    "c": 0.22679,
    "h": 314.2
  },
  "luminance": 0.18485
}

Semantic roles & 50–950 ramp

primary
#AF45DB
secondary
#B1DD9F
accent
#EA3D70
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF45DB

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

Preview Lab → · Contrast checker → · Palette generator →

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