#AF5BE1#AF5BE1

#AF5BE1 is a light, highly saturated violet. Relative luminance 0.220; OKLCH L 62.8% C 0.203 H 310.8°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#AF5BE1
RGBrgb(175, 91, 225)
HSLhsl(278, 69%, 62%)
HSVhsv(278, 60%, 88%)
CMYKcmyk(22.2%, 59.6%, 0%, 11.8%)
CIE-LABlab(54.06, 56.42, -54.75)
CIE-LCHlch(54.06, 78.62, 315.86°)
OKLaboklab(62.82% 0.1329 -0.154)
OKLCHoklch(62.82% 0.203 310.8)
XYZxyz(35.0084, 22.0331, 73.6282)
Luminance0.2203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BE1 #8DE15B
analogous
#6C5BE1 #AF5BE1 #E15BD0
triadic
#AF5BE1 #E1AF5B #5BE1AF
tetradic
#AF5BE1 #E16C5B #8DE15B #5BD0E1
square
#AF5BE1 #E16C5B #8DE15B #5BD0E1
split-complementary
#AF5BE1 #D0E15B #5BE16C
monochromatic
#721EA4 #9627D7 #AF5BE1 #C88FEA #E1C2F4

Accessibility & contrast

On white

3.88
#AF5BE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#AF5BE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BE1
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BE1#FFFFFF#000000##000000
##AF5BE11.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#287DE5
Deuteranopia (green-blind)
#4E83DE
Tritanopia (blue-blind)
#A97496
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af5be1;
/* rgb */ color: rgb(175, 91, 225);
/* oklch */ color: oklch(62.8% 0.203 310.8);
Tailwind
colors: {
  custom: {
    50: '#ca8deb',
    500: '#af5be1',
    950: '#000000',
  },
}
SCSS
$custom: #af5be1;
$custom-light: #ca8deb;
$custom-dark: #000000;
JSON
{
  "hex": "#af5be1",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 225
  },
  "hsl": {
    "h": 277.612,
    "s": 69.072,
    "l": 61.961
  },
  "oklch": {
    "l": 0.62815,
    "c": 0.20341,
    "h": 310.8
  },
  "luminance": 0.22032
}

Semantic roles & 50–950 ramp

primary
#AF5BE1
secondary
#C6E5B3
accent
#D1145B
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF5BE1

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

Preview Lab → · Contrast checker → · Palette generator →

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