#AF5AEA#AF5AEA

#AF5AEA is a light, highly saturated violet. Relative luminance 0.224; OKLCH L 63.2% C 0.214 H 308.7°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#AF5AEA
RGBrgb(175, 90, 234)
HSLhsl(275, 77%, 64%)
HSVhsv(275, 62%, 92%)
CMYKcmyk(25.2%, 61.5%, 0%, 8.2%)
CIE-LABlab(54.41, 58.87, -59.24)
CIE-LCHlch(54.41, 83.52, 314.82°)
OKLaboklab(63.24% 0.1339 -0.1672)
OKLCHoklch(63.24% 0.214 308.7)
XYZxyz(36.1837, 22.3674, 80.2371)
Luminance0.2237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5AEA #95EA5A
analogous
#675AEA #AF5AEA #EA5ADD
triadic
#AF5AEA #EAAF5A #5AEAAF
tetradic
#AF5AEA #EA675A #95EA5A #5ADDEA
square
#AF5AEA #EA675A #95EA5A #5ADDEA
split-complementary
#AF5AEA #DDEA5A #5AEA67
monochromatic
#7317B3 #9524E3 #AF5AEA #C990F1 #E4C7F8

Accessibility & contrast

On white

3.84
#AF5AEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#AF5AEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5AEA
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5AEA#FFFFFF#000000##000000
##AF5AEA1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0E7FEE
Deuteranopia (green-blind)
#4483E7
Tritanopia (blue-blind)
#A6779A
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af5aea;
/* rgb */ color: rgb(175, 90, 234);
/* oklch */ color: oklch(63.2% 0.214 308.7);
Tailwind
colors: {
  custom: {
    50: '#cb8df1',
    500: '#af5aea',
    950: '#000000',
  },
}
SCSS
$custom: #af5aea;
$custom-light: #cb8df1;
$custom-dark: #000000;
JSON
{
  "hex": "#af5aea",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 234
  },
  "hsl": {
    "h": 275.417,
    "s": 77.419,
    "l": 63.529
  },
  "oklch": {
    "l": 0.63241,
    "c": 0.2142,
    "h": 308.7
  },
  "luminance": 0.22367
}

Semantic roles & 50–950 ramp

primary
#AF5AEA
secondary
#CBE9B6
accent
#DA0C60
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF5AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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