#AF4CD8#AF4CD8

#AF4CD8 is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 60.4% C 0.215 H 314.5°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#AF4CD8
RGBrgb(175, 76, 216)
HSLhsl(282, 64%, 57%)
HSVhsv(282, 65%, 85%)
CMYKcmyk(19%, 64.8%, 0%, 15.3%)
CIE-LABlab(50.97, 61.54, -54.60)
CIE-LCHlch(50.97, 82.27, 318.42°)
OKLaboklab(60.4% 0.1507 -0.1535)
OKLCHoklch(60.4% 0.215 314.5)
XYZxyz(32.6563, 19.2418, 66.9462)
Luminance0.1924 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CD8 #75D84C
analogous
#694CD8 #AF4CD8 #D84CBB
triadic
#AF4CD8 #D8AF4C #4CD8AF
tetradic
#AF4CD8 #D8694C #75D84C #4CBBD8
square
#AF4CD8 #D8694C #75D84C #4CBBD8
split-complementary
#AF4CD8 #BBD84C #4CD869
monochromatic
#6B1E8B #9229BE #AF4CD8 #C57EE3 #DCB1EE

Accessibility & contrast

On white

4.33
#AF4CD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#AF4CD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4CD8
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CD8#FFFFFF#000000##000000
##AF4CD81.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0274DC
Deuteranopia (green-blind)
#477CD5
Tritanopia (blue-blind)
#AC678C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af4cd8;
/* rgb */ color: rgb(175, 76, 216);
/* oklch */ color: oklch(60.4% 0.215 314.5);
Tailwind
colors: {
  custom: {
    50: '#cb85e5',
    500: '#af4cd8',
    950: '#000000',
  },
}
SCSS
$custom: #af4cd8;
$custom-light: #cb85e5;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cd8",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 216
  },
  "hsl": {
    "h": 282.429,
    "s": 64.22,
    "l": 57.255
  },
  "oklch": {
    "l": 0.60404,
    "c": 0.21509,
    "h": 314.5
  },
  "luminance": 0.19241
}

Semantic roles & 50–950 ramp

primary
#AF4CD8
secondary
#B4DCA4
accent
#E74171
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF4CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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