#AF4EB4#AF4EB4

#AF4EB4 is a mid, vivid purple. Relative luminance 0.179; OKLCH L 58.6% C 0.178 H 325.6°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#AF4EB4
RGBrgb(175, 78, 180)
HSLhsl(297, 40%, 51%)
HSVhsv(297, 57%, 71%)
CMYKcmyk(2.8%, 56.7%, 0%, 29.4%)
CIE-LABlab(49.33, 53.64, -36.47)
CIE-LCHlch(49.33, 64.86, 325.79°)
OKLaboklab(58.57% 0.1472 -0.1007)
OKLCHoklch(58.57% 0.178 325.6)
XYZxyz(28.6412, 17.8596, 45.1098)
Luminance0.1786 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EB4 #53B44E
analogous
#7C4EB4 #AF4EB4 #B44E86
triadic
#AF4EB4 #B4AF4E #4EB4AF
tetradic
#AF4EB4 #B47C4E #53B44E #4E86B4
square
#AF4EB4 #B47C4E #53B44E #4E86B4
split-complementary
#AF4EB4 #86B44E #4EB47C
monochromatic
#5D285F #863B8A #AF4EB4 #C279C6 #D6A4D8

Accessibility & contrast

On white

4.59
#AF4EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#AF4EB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4EB4
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EB4#FFFFFF#000000##FFFFFF
##AF4EB41.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#406DB7
Deuteranopia (green-blind)
#617AB1
Tritanopia (blue-blind)
#B35B7A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af4eb4;
/* rgb */ color: rgb(175, 78, 180);
/* oklch */ color: oklch(58.6% 0.178 325.6);
Tailwind
colors: {
  custom: {
    50: '#c985cb',
    500: '#af4eb4',
    950: '#000000',
  },
}
SCSS
$custom: #af4eb4;
$custom-light: #c985cb;
$custom-dark: #000000;
JSON
{
  "hex": "#af4eb4",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 180
  },
  "hsl": {
    "h": 297.059,
    "s": 40.476,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58573,
    "c": 0.17838,
    "h": 325.6
  },
  "luminance": 0.17858
}

Semantic roles & 50–950 ramp

primary
#AF4EB4
secondary
#9AC698
accent
#D0575D
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AF4EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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