#AF38CD#AF38CD

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

Color values

HEX#AF38CD
RGBrgb(175, 56, 205)
HSLhsl(288, 60%, 51%)
HSVhsv(288, 73%, 80%)
CMYKcmyk(14.6%, 72.7%, 0%, 19.6%)
CIE-LABlab(47.43, 67.44, -53.98)
CIE-LCHlch(47.43, 86.38, 321.33°)
OKLaboklab(57.66% 0.1722 -0.1515)
OKLCHoklch(57.66% 0.229 318.6)
XYZxyz(30.1113, 16.3515, 59.3158)
Luminance0.1635 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38CD #56CD38
analogous
#6438CD #AF38CD #CD38A1
triadic
#AF38CD #CDAF38 #38CDAF
tetradic
#AF38CD #CD6438 #56CD38 #38A1CD
square
#AF38CD #CD6438 #56CD38 #38A1CD
split-complementary
#AF38CD #A1CD38 #38CD64
monochromatic
#5E1C6F #8828A0 #AF38CD #C369D9 #D69AE6

Accessibility & contrast

On white

4.92
#AF38CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#AF38CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38CD
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38CD#FFFFFF#000000##FFFFFF
##AF38CD1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D1
Deuteranopia (green-blind)
#4174CA
Tritanopia (blue-blind)
#AF5680
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af38cd;
/* rgb */ color: rgb(175, 56, 205);
/* oklch */ color: oklch(57.7% 0.229 318.6);
Tailwind
colors: {
  custom: {
    50: '#cb7add',
    500: '#af38cd',
    950: '#000000',
  },
}
SCSS
$custom: #af38cd;
$custom-light: #cb7add;
$custom-dark: #000000;
JSON
{
  "hex": "#af38cd",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 287.919,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.57657,
    "c": 0.22935,
    "h": 318.6
  },
  "luminance": 0.1635
}

Semantic roles & 50–950 ramp

primary
#AF38CD
secondary
#9DD18F
accent
#E34565
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AF38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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