#AF5AE3#AF5AE3

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

Color values

HEX#AF5AE3
RGBrgb(175, 90, 227)
HSLhsl(277, 71%, 62%)
HSVhsv(277, 60%, 89%)
CMYKcmyk(22.9%, 60.4%, 0%, 11%)
CIE-LABlab(54.00, 57.34, -55.98)
CIE-LCHlch(54.00, 80.13, 315.69°)
OKLaboklab(62.81% 0.1341 -0.1576)
OKLCHoklch(62.81% 0.207 310.4)
XYZxyz(35.1979, 21.9731, 75.0452)
Luminance0.2197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5AE3 #8EE35A
analogous
#6B5AE3 #AF5AE3 #E35AD3
triadic
#AF5AE3 #E3AF5A #5AE3AF
tetradic
#AF5AE3 #E36B5A #8EE35A #5AD3E3
square
#AF5AE3 #E36B5A #8EE35A #5AD3E3
split-complementary
#AF5AE3 #D3E35A #5AE36B
monochromatic
#721CA6 #9626DA #AF5AE3 #C88EEC #E2C3F5

Accessibility & contrast

On white

3.89
#AF5AE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#AF5AE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5AE3
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5AE3#FFFFFF#000000##000000
##AF5AE31.003.895.395.39
#FFFFFF3.891.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#217DE7
Deuteranopia (green-blind)
#4B83E0
Tritanopia (blue-blind)
#A87496
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af5ae3;
/* rgb */ color: rgb(175, 90, 227);
/* oklch */ color: oklch(62.8% 0.207 310.4);
Tailwind
colors: {
  custom: {
    50: '#ca8dec',
    500: '#af5ae3',
    950: '#000000',
  },
}
SCSS
$custom: #af5ae3;
$custom-light: #ca8dec;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ae3",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 227
  },
  "hsl": {
    "h": 277.226,
    "s": 70.984,
    "l": 62.157
  },
  "oklch": {
    "l": 0.62806,
    "c": 0.20692,
    "h": 310.4
  },
  "luminance": 0.21972
}

Semantic roles & 50–950 ramp

primary
#AF5AE3
secondary
#C6E6B3
accent
#D3125C
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF5AE3

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

Preview Lab → · Contrast checker → · Palette generator →

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