#AF4DCB#AF4DCB

#AF4DCB is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 59.7% C 0.201 H 318.1°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#AF4DCB
RGBrgb(175, 77, 203)
HSLhsl(287, 55%, 55%)
HSVhsv(287, 62%, 80%)
CMYKcmyk(13.8%, 62.1%, 0%, 20.4%)
CIE-LABlab(50.38, 58.48, -48.12)
CIE-LCHlch(50.38, 75.73, 320.55°)
OKLaboklab(59.73% 0.1497 -0.1345)
OKLCHoklch(59.73% 0.201 318.1)
XYZxyz(31.1111, 18.7348, 58.4657)
Luminance0.1873 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4DCB #69CB4D
analogous
#704DCB #AF4DCB #CB4DA8
triadic
#AF4DCB #CBAF4D #4DCBAF
tetradic
#AF4DCB #CB704D #69CB4D #4DA8CB
square
#AF4DCB #CB704D #69CB4D #4DA8CB
split-complementary
#AF4DCB #A8CB4D #4DCB70
monochromatic
#67247A #8F31A9 #AF4DCB #C47CD9 #DAACE7

Accessibility & contrast

On white

4.42
#AF4DCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#AF4DCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4DCB
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4DCB#FFFFFF#000000##000000
##AF4DCB1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2871CF
Deuteranopia (green-blind)
#527BC8
Tritanopia (blue-blind)
#AE6385
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af4dcb;
/* rgb */ color: rgb(175, 77, 203);
/* oklch */ color: oklch(59.7% 0.201 318.1);
Tailwind
colors: {
  custom: {
    50: '#ca85db',
    500: '#af4dcb',
    950: '#000000',
  },
}
SCSS
$custom: #af4dcb;
$custom-light: #ca85db;
$custom-dark: #000000;
JSON
{
  "hex": "#af4dcb",
  "rgb": {
    "r": 175,
    "g": 77,
    "b": 203
  },
  "hsl": {
    "h": 286.667,
    "s": 54.783,
    "l": 54.902
  },
  "oklch": {
    "l": 0.59733,
    "c": 0.2013,
    "h": 318.1
  },
  "luminance": 0.18734
}

Semantic roles & 50–950 ramp

primary
#AF4DCB
secondary
#ABD49F
accent
#DE4A6B
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF4DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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