#AF4CDB#AF4CDB

#AF4CDB is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 60.6% C 0.218 H 313.7°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#AF4CDB
RGBrgb(175, 76, 219)
HSLhsl(282, 67%, 58%)
HSVhsv(282, 65%, 86%)
CMYKcmyk(20.1%, 65.3%, 0%, 14.1%)
CIE-LABlab(51.15, 62.15, -56.02)
CIE-LCHlch(51.15, 83.67, 317.97°)
OKLaboklab(60.59% 0.1505 -0.1577)
OKLCHoklch(60.59% 0.218 313.7)
XYZxyz(33.0476, 19.3983, 69.0075)
Luminance0.1940 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CDB #78DB4C
analogous
#674CDB #AF4CDB #DB4CC0
triadic
#AF4CDB #DBAF4C #4CDBAF
tetradic
#AF4CDB #DB674C #78DB4C #4CC0DB
square
#AF4CDB #DB674C #78DB4C #4CC0DB
split-complementary
#AF4CDB #C0DB4C #4CDB67
monochromatic
#6C1D90 #9327C3 #AF4CDB #C67FE5 #DDB2EF

Accessibility & contrast

On white

4.30
#AF4CDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#AF4CDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4CDB
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CDB#FFFFFF#000000##000000
##AF4CDB1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074DF
Deuteranopia (green-blind)
#447CD8
Tritanopia (blue-blind)
#AB688D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af4cdb;
/* rgb */ color: rgb(175, 76, 219);
/* oklch */ color: oklch(60.6% 0.218 313.7);
Tailwind
colors: {
  custom: {
    50: '#cb85e7',
    500: '#af4cdb',
    950: '#000000',
  },
}
SCSS
$custom: #af4cdb;
$custom-light: #cb85e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cdb",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 219
  },
  "hsl": {
    "h": 281.538,
    "s": 66.512,
    "l": 57.843
  },
  "oklch": {
    "l": 0.60593,
    "c": 0.21797,
    "h": 313.7
  },
  "luminance": 0.19397
}

Semantic roles & 50–950 ramp

primary
#AF4CDB
secondary
#B6DEA5
accent
#E93E73
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF4CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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