#AF38B2#AF38B2

#AF38B2 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.0% C 0.207 H 326.9°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#AF38B2
RGBrgb(175, 56, 178)
HSLhsl(299, 52%, 46%)
HSVhsv(299, 69%, 70%)
CMYKcmyk(1.7%, 68.5%, 0%, 30.2%)
CIE-LABlab(45.85, 62.61, -40.78)
CIE-LCHlch(45.85, 74.72, 326.92°)
OKLaboklab(56.02% 0.1732 -0.113)
OKLCHoklch(56.02% 0.207 326.9)
XYZxyz(27.1288, 15.1585, 43.6078)
Luminance0.1516 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38B2 #3BB238
analogous
#7238B2 #AF38B2 #B23878
triadic
#AF38B2 #B2AF38 #38B2AF
tetradic
#AF38B2 #B27238 #3BB238 #3878B2
square
#AF38B2 #B27238 #3BB238 #3878B2
split-complementary
#AF38B2 #78B238 #38B272
monochromatic
#531B55 #812983 #AF38B2 #C95CCC #D88ADA

Accessibility & contrast

On white

5.21
#AF38B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#AF38B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38B2
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38B2#FFFFFF#000000##FFFFFF
##AF38B21.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2263B5
Deuteranopia (green-blind)
#5572AF
Tritanopia (blue-blind)
#B44A71
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af38b2;
/* rgb */ color: rgb(175, 56, 178);
/* oklch */ color: oklch(56.0% 0.207 326.9);
Tailwind
colors: {
  custom: {
    50: '#ca79c9',
    500: '#af38b2',
    950: '#000000',
  },
}
SCSS
$custom: #af38b2;
$custom-light: #ca79c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af38b2",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 298.525,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56018,
    "c": 0.20683,
    "h": 326.9
  },
  "luminance": 0.15157
}

Semantic roles & 50–950 ramp

primary
#AF38B2
secondary
#83C581
accent
#DC4C50
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF38B2

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

Preview Lab → · Contrast checker → · Palette generator →

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