#AF3DA8#AF3DA8

#AF3DA8 is a mid, vivid purple. Relative luminance 0.153; OKLCH L 56.0% C 0.192 H 330.3°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#AF3DA8
RGBrgb(175, 61, 168)
HSLhsl(304, 48%, 46%)
HSVhsv(304, 65%, 69%)
CMYKcmyk(0%, 65.1%, 4%, 31.4%)
CIE-LABlab(46.02, 58.99, -34.62)
CIE-LCHlch(46.02, 68.39, 329.59°)
OKLaboklab(55.97% 0.1672 -0.0952)
OKLCHoklch(55.97% 0.192 330.3)
XYZxyz(26.4157, 15.2805, 38.5963)
Luminance0.1528 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3DA8 #3DAF44
analogous
#7D3DAF #AF3DA8 #AF3D6F
triadic
#AF3DA8 #A8AF3D #3DA8AF
tetradic
#AF3DA8 #AF7D3D #3DAF44 #3D6FAF
square
#AF3DA8 #AF7D3D #3DAF44 #3D6FAF
split-complementary
#AF3DA8 #6FAF3D #3DAF7D
monochromatic
#541D51 #822D7C #AF3DA8 #C861C2 #D88FD3

Accessibility & contrast

On white

5.18
#AF3DA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#AF3DA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3DA8
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3DA8#FFFFFF#000000##FFFFFF
##AF3DA81.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3463AB
Deuteranopia (green-blind)
#5D73A5
Tritanopia (blue-blind)
#B54A6D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af3da8;
/* rgb */ color: rgb(175, 61, 168);
/* oklch */ color: oklch(56.0% 0.192 330.3);
Tailwind
colors: {
  custom: {
    50: '#ca7bc2',
    500: '#af3da8',
    950: '#000000',
  },
}
SCSS
$custom: #af3da8;
$custom-light: #ca7bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#af3da8",
  "rgb": {
    "r": 175,
    "g": 61,
    "b": 168
  },
  "hsl": {
    "h": 303.684,
    "s": 48.305,
    "l": 46.275
  },
  "oklch": {
    "l": 0.55968,
    "c": 0.19244,
    "h": 330.3
  },
  "luminance": 0.15279
}

Semantic roles & 50–950 ramp

primary
#AF3DA8
secondary
#85C389
accent
#D85850
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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