#AF38CE#AF38CE

#AF38CE is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.7% C 0.230 H 318.4°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#AF38CE
RGBrgb(175, 56, 206)
HSLhsl(288, 60%, 51%)
HSVhsv(288, 73%, 81%)
CMYKcmyk(15%, 72.8%, 0%, 19.2%)
CIE-LABlab(47.49, 67.62, -54.45)
CIE-LCHlch(47.49, 86.82, 321.16°)
OKLaboklab(57.72% 0.1721 -0.1529)
OKLCHoklch(57.72% 0.23 318.4)
XYZxyz(30.2324, 16.3999, 59.9536)
Luminance0.1640 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38CE #57CE38
analogous
#6438CE #AF38CE #CE38A2
triadic
#AF38CE #CEAF38 #38CEAF
tetradic
#AF38CE #CE6438 #57CE38 #38A2CE
square
#AF38CE #CE6438 #57CE38 #38A2CE
split-complementary
#AF38CE #A2CE38 #38CE64
monochromatic
#5F1C70 #8828A1 #AF38CE #C369DA #D69AE6

Accessibility & contrast

On white

4.91
#AF38CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#AF38CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38CE
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38CE#FFFFFF#000000##FFFFFF
##AF38CE1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D2
Deuteranopia (green-blind)
#4074CB
Tritanopia (blue-blind)
#AE5780
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af38ce;
/* rgb */ color: rgb(175, 56, 206);
/* oklch */ color: oklch(57.7% 0.230 318.4);
Tailwind
colors: {
  custom: {
    50: '#cb7ade',
    500: '#af38ce',
    950: '#000000',
  },
}
SCSS
$custom: #af38ce;
$custom-light: #cb7ade;
$custom-dark: #000000;
JSON
{
  "hex": "#af38ce",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 206
  },
  "hsl": {
    "h": 287.6,
    "s": 60.484,
    "l": 51.373
  },
  "oklch": {
    "l": 0.57722,
    "c": 0.2302,
    "h": 318.4
  },
  "luminance": 0.16399
}

Semantic roles & 50–950 ramp

primary
#AF38CE
secondary
#9ED290
accent
#E44465
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AF38CE

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

Preview Lab → · Contrast checker → · Palette generator →

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