#AF5AEB#AF5AEB

#AF5AEB is a light, highly saturated violet. Relative luminance 0.224; OKLCH L 63.3% C 0.215 H 308.5°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#AF5AEB
RGBrgb(175, 90, 235)
HSLhsl(275, 78%, 64%)
HSVhsv(275, 62%, 92%)
CMYKcmyk(25.5%, 61.7%, 0%, 7.8%)
CIE-LABlab(54.48, 59.09, -59.71)
CIE-LCHlch(54.48, 84.00, 314.70°)
OKLaboklab(63.3% 0.1339 -0.1685)
OKLCHoklch(63.3% 0.215 308.5)
XYZxyz(36.3277, 22.4250, 80.9959)
Luminance0.2242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5AEB #96EB5A
analogous
#665AEB #AF5AEB #EB5ADF
triadic
#AF5AEB #EBAF5A #5AEBAF
tetradic
#AF5AEB #EB665A #96EB5A #5ADFEB
square
#AF5AEB #EB665A #96EB5A #5ADFEB
split-complementary
#AF5AEB #DFEB5A #5AEB66
monochromatic
#7316B5 #9523E4 #AF5AEB #C991F2 #E4C7F8

Accessibility & contrast

On white

3.83
#AF5AEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#AF5AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5AEB
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5AEB#FFFFFF#000000##000000
##AF5AEB1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#097FF0
Deuteranopia (green-blind)
#4383E8
Tritanopia (blue-blind)
#A6779A
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af5aeb;
/* rgb */ color: rgb(175, 90, 235);
/* oklch */ color: oklch(63.3% 0.215 308.5);
Tailwind
colors: {
  custom: {
    50: '#cb8df2',
    500: '#af5aeb',
    950: '#000000',
  },
}
SCSS
$custom: #af5aeb;
$custom-light: #cb8df2;
$custom-dark: #000000;
JSON
{
  "hex": "#af5aeb",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 235
  },
  "hsl": {
    "h": 275.172,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.63304,
    "c": 0.21524,
    "h": 308.5
  },
  "luminance": 0.22424
}

Semantic roles & 50–950 ramp

primary
#AF5AEB
secondary
#CCEAB7
accent
#DB0B61
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF5AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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