#AF4CDA#AF4CDA

#AF4CDA is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 60.5% C 0.217 H 313.9°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AF4CDA
RGBrgb(175, 76, 218)
HSLhsl(282, 66%, 58%)
HSVhsv(282, 65%, 85%)
CMYKcmyk(19.7%, 65.1%, 0%, 14.5%)
CIE-LABlab(51.09, 61.95, -55.55)
CIE-LCHlch(51.09, 83.20, 318.12°)
OKLaboklab(60.53% 0.1506 -0.1563)
OKLCHoklch(60.53% 0.217 313.9)
XYZxyz(32.9164, 19.3458, 68.3162)
Luminance0.1935 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CDA #77DA4C
analogous
#684CDA #AF4CDA #DA4CBE
triadic
#AF4CDA #DAAF4C #4CDAAF
tetradic
#AF4CDA #DA684C #77DA4C #4CBEDA
square
#AF4CDA #DA684C #77DA4C #4CBEDA
split-complementary
#AF4CDA #BEDA4C #4CDA68
monochromatic
#6C1D8E #9328C1 #AF4CDA #C67FE4 #DCB1EF

Accessibility & contrast

On white

4.31
#AF4CDA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#AF4CDA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4CDA
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CDA#FFFFFF#000000##000000
##AF4CDA1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074DE
Deuteranopia (green-blind)
#457CD7
Tritanopia (blue-blind)
#AB688D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af4cda;
/* rgb */ color: rgb(175, 76, 218);
/* oklch */ color: oklch(60.5% 0.217 313.9);
Tailwind
colors: {
  custom: {
    50: '#cb85e6',
    500: '#af4cda',
    950: '#000000',
  },
}
SCSS
$custom: #af4cda;
$custom-light: #cb85e6;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cda",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 218
  },
  "hsl": {
    "h": 281.831,
    "s": 65.741,
    "l": 57.647
  },
  "oklch": {
    "l": 0.6053,
    "c": 0.21701,
    "h": 313.9
  },
  "luminance": 0.19345
}

Semantic roles & 50–950 ramp

primary
#AF4CDA
secondary
#B6DDA4
accent
#E93F72
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF4CDA

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

Preview Lab → · Contrast checker → · Palette generator →

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