#AF4CD7#AF4CD7

#AF4CD7 is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 60.3% C 0.214 H 314.7°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AF4CD7
RGBrgb(175, 76, 215)
HSLhsl(283, 63%, 57%)
HSVhsv(283, 65%, 84%)
CMYKcmyk(18.6%, 64.7%, 0%, 15.7%)
CIE-LABlab(50.91, 61.34, -54.13)
CIE-LCHlch(50.91, 81.80, 318.57°)
OKLaboklab(60.34% 0.1507 -0.1521)
OKLCHoklch(60.34% 0.214 314.7)
XYZxyz(32.5274, 19.1902, 66.2674)
Luminance0.1919 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CD7 #74D74C
analogous
#6A4CD7 #AF4CD7 #D74CB9
triadic
#AF4CD7 #D7AF4C #4CD7AF
tetradic
#AF4CD7 #D76A4C #74D74C #4CB9D7
square
#AF4CD7 #D76A4C #74D74C #4CB9D7
split-complementary
#AF4CD7 #B9D74C #4CD76A
monochromatic
#6B1F8A #922ABC #AF4CD7 #C57EE2 #DCB0ED

Accessibility & contrast

On white

4.34
#AF4CD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#AF4CD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4CD7
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CD7#FFFFFF#000000##000000
##AF4CD71.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0774DB
Deuteranopia (green-blind)
#487CD4
Tritanopia (blue-blind)
#AC668B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af4cd7;
/* rgb */ color: rgb(175, 76, 215);
/* oklch */ color: oklch(60.3% 0.214 314.7);
Tailwind
colors: {
  custom: {
    50: '#ca84e4',
    500: '#af4cd7',
    950: '#000000',
  },
}
SCSS
$custom: #af4cd7;
$custom-light: #ca84e4;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cd7",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 215
  },
  "hsl": {
    "h": 282.734,
    "s": 63.47,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60342,
    "c": 0.21414,
    "h": 314.7
  },
  "luminance": 0.19189
}

Semantic roles & 50–950 ramp

primary
#AF4CD7
secondary
#B3DCA3
accent
#E64171
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF4CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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