#AF5AEC#AF5AEC

#AF5AEC is a light, highly saturated violet. Relative luminance 0.225; OKLCH L 63.4% C 0.216 H 308.2°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#AF5AEC
RGBrgb(175, 90, 236)
HSLhsl(275, 79%, 64%)
HSVhsv(275, 62%, 93%)
CMYKcmyk(25.8%, 61.9%, 0%, 7.5%)
CIE-LABlab(54.54, 59.31, -60.17)
CIE-LCHlch(54.54, 84.48, 314.59°)
OKLaboklab(63.37% 0.1339 -0.1699)
OKLCHoklch(63.37% 0.216 308.2)
XYZxyz(36.4726, 22.4830, 81.7589)
Luminance0.2248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5AEC #97EC5A
analogous
#665AEC #AF5AEC #EC5AE0
triadic
#AF5AEC #ECAF5A #5AECAF
tetradic
#AF5AEC #EC665A #97EC5A #5AE0EC
square
#AF5AEC #EC665A #97EC5A #5AE0EC
split-complementary
#AF5AEC #E0EC5A #5AEC66
monochromatic
#7315B7 #9423E6 #AF5AEC #CA91F2 #E4C8F9

Accessibility & contrast

On white

3.82
#AF5AEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#AF5AEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5AEC
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5AEC#FFFFFF#000000##000000
##AF5AEC1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#037FF1
Deuteranopia (green-blind)
#4283E9
Tritanopia (blue-blind)
#A6779B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af5aec;
/* rgb */ color: rgb(175, 90, 236);
/* oklch */ color: oklch(63.4% 0.216 308.2);
Tailwind
colors: {
  custom: {
    50: '#cb8df3',
    500: '#af5aec',
    950: '#000000',
  },
}
SCSS
$custom: #af5aec;
$custom-light: #cb8df3;
$custom-dark: #000000;
JSON
{
  "hex": "#af5aec",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 236
  },
  "hsl": {
    "h": 274.932,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.63368,
    "c": 0.21629,
    "h": 308.2
  },
  "luminance": 0.22482
}

Semantic roles & 50–950 ramp

primary
#AF5AEC
secondary
#CDEBB7
accent
#DC0A62
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF5AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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