#AF5BE4#AF5BE4

#AF5BE4 is a light, highly saturated violet. Relative luminance 0.222; OKLCH L 63.0% C 0.207 H 310.0°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#AF5BE4
RGBrgb(175, 91, 228)
HSLhsl(277, 72%, 63%)
HSVhsv(277, 60%, 89%)
CMYKcmyk(23.2%, 60.1%, 0%, 10.6%)
CIE-LABlab(54.24, 57.07, -56.16)
CIE-LCHlch(54.24, 80.07, 315.46°)
OKLaboklab(63% 0.1329 -0.1581)
OKLCHoklch(63% 0.207 310)
XYZxyz(35.4212, 22.1983, 75.8025)
Luminance0.2220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BE4 #90E45B
analogous
#6A5BE4 #AF5BE4 #E45BD5
triadic
#AF5BE4 #E4AF5B #5BE4AF
tetradic
#AF5BE4 #E46A5B #90E45B #5BD5E4
square
#AF5BE4 #E46A5B #90E45B #5BD5E4
split-complementary
#AF5BE4 #D5E45B #5BE46A
monochromatic
#721CA9 #9526DB #AF5BE4 #C990ED #E2C4F5

Accessibility & contrast

On white

3.86
#AF5BE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#AF5BE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BE4
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BE4#FFFFFF#000000##000000
##AF5BE41.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#237EE8
Deuteranopia (green-blind)
#4B83E1
Tritanopia (blue-blind)
#A87597
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af5be4;
/* rgb */ color: rgb(175, 91, 228);
/* oklch */ color: oklch(63.0% 0.207 310.0);
Tailwind
colors: {
  custom: {
    50: '#ca8eed',
    500: '#af5be4',
    950: '#000000',
  },
}
SCSS
$custom: #af5be4;
$custom-light: #ca8eed;
$custom-dark: #000000;
JSON
{
  "hex": "#af5be4",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 228
  },
  "hsl": {
    "h": 276.788,
    "s": 71.728,
    "l": 62.549
  },
  "oklch": {
    "l": 0.62998,
    "c": 0.20654,
    "h": 310
  },
  "luminance": 0.22198
}

Semantic roles & 50–950 ramp

primary
#AF5BE4
secondary
#C8E6B4
accent
#D4125D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140D16
muted
#827D84

Preview Lab

Preview with #AF5BE4

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

Preview Lab → · Contrast checker → · Palette generator →

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