#AF4EB2#AF4EB2

#AF4EB2 is a mid, vivid purple. Relative luminance 0.178; OKLCH L 58.5% C 0.177 H 326.4°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#AF4EB2
RGBrgb(175, 78, 178)
HSLhsl(298, 39%, 50%)
HSVhsv(298, 56%, 70%)
CMYKcmyk(1.7%, 56.2%, 0%, 30.2%)
CIE-LABlab(49.23, 53.27, -35.45)
CIE-LCHlch(49.23, 63.99, 326.36°)
OKLaboklab(58.47% 0.147 -0.0978)
OKLCHoklch(58.47% 0.177 326.4)
XYZxyz(28.4389, 17.7787, 44.0445)
Luminance0.1778 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EB2 #51B24E
analogous
#7D4EB2 #AF4EB2 #B24E83
triadic
#AF4EB2 #B2AF4E #4EB2AF
tetradic
#AF4EB2 #B27D4E #51B24E #4E83B2
square
#AF4EB2 #B27D4E #51B24E #4E83B2
split-complementary
#AF4EB2 #83B24E #4EB27D
monochromatic
#5C295D #853B88 #AF4EB2 #C279C5 #D6A3D7

Accessibility & contrast

On white

4.61
#AF4EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#AF4EB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4EB2
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EB2#FFFFFF#000000##FFFFFF
##AF4EB21.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#426DB5
Deuteranopia (green-blind)
#6279AF
Tritanopia (blue-blind)
#B35A79
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af4eb2;
/* rgb */ color: rgb(175, 78, 178);
/* oklch */ color: oklch(58.5% 0.177 326.4);
Tailwind
colors: {
  custom: {
    50: '#c985c9',
    500: '#af4eb2',
    950: '#000000',
  },
}
SCSS
$custom: #af4eb2;
$custom-light: #c985c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af4eb2",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 178
  },
  "hsl": {
    "h": 298.2,
    "s": 39.37,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58469,
    "c": 0.17658,
    "h": 326.4
  },
  "luminance": 0.17777
}

Semantic roles & 50–950 ramp

primary
#AF4EB2
secondary
#99C498
accent
#CF595C
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AF4EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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