#AF4DBA#AF4DBA

#AF4DBA is a mid, vivid purple. Relative luminance 0.180; OKLCH L 58.8% C 0.185 H 323.5°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#AF4DBA
RGBrgb(175, 77, 186)
HSLhsl(294, 44%, 52%)
HSVhsv(294, 59%, 73%)
CMYKcmyk(5.9%, 58.6%, 0%, 27.1%)
CIE-LABlab(49.46, 55.22, -39.75)
CIE-LCHlch(49.46, 68.04, 324.25°)
OKLaboklab(58.77% 0.149 -0.1102)
OKLCHoklch(58.77% 0.185 323.5)
XYZxyz(29.1952, 17.9684, 48.3753)
Luminance0.1797 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4DBA #58BA4D
analogous
#794DBA #AF4DBA #BA4D8F
triadic
#AF4DBA #BAAF4D #4DBAAF
tetradic
#AF4DBA #BA794D #58BA4D #4D8FBA
square
#AF4DBA #BA794D #58BA4D #4D8FBA
split-complementary
#AF4DBA #8FBA4D #4DBA79
monochromatic
#5F2765 #883891 #AF4DBA #C379CB #D7A5DC

Accessibility & contrast

On white

4.57
#AF4DBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#AF4DBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4DBA
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4DBA#FFFFFF#000000##000000
##AF4DBA1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A6EBD
Deuteranopia (green-blind)
#5D7AB7
Tritanopia (blue-blind)
#B25C7C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af4dba;
/* rgb */ color: rgb(175, 77, 186);
/* oklch */ color: oklch(58.8% 0.185 323.5);
Tailwind
colors: {
  custom: {
    50: '#ca84cf',
    500: '#af4dba',
    950: '#000000',
  },
}
SCSS
$custom: #af4dba;
$custom-light: #ca84cf;
$custom-dark: #000000;
JSON
{
  "hex": "#af4dba",
  "rgb": {
    "r": 175,
    "g": 77,
    "b": 186
  },
  "hsl": {
    "h": 293.945,
    "s": 44.13,
    "l": 51.569
  },
  "oklch": {
    "l": 0.58769,
    "c": 0.18536,
    "h": 323.5
  },
  "luminance": 0.17967
}

Semantic roles & 50–950 ramp

primary
#AF4DBA
secondary
#9EC999
accent
#D45461
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF4DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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