#AF5CEB#AF5CEB

#AF5CEB is a light, highly saturated violet. Relative luminance 0.228; OKLCH L 63.6% C 0.212 H 308.3°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#AF5CEB
RGBrgb(175, 92, 235)
HSLhsl(275, 78%, 64%)
HSVhsv(275, 61%, 92%)
CMYKcmyk(25.5%, 60.9%, 0%, 7.8%)
CIE-LABlab(54.83, 58.12, -59.14)
CIE-LCHlch(54.83, 82.91, 314.50°)
OKLaboklab(63.56% 0.1316 -0.1669)
OKLCHoklch(63.56% 0.212 308.3)
XYZxyz(36.4987, 22.7669, 81.0529)
Luminance0.2277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CEB #98EB5C
analogous
#685CEB #AF5CEB #EB5CE0
triadic
#AF5CEB #EBAF5C #5CEBAF
tetradic
#AF5CEB #EB685C #98EB5C #5CE0EB
square
#AF5CEB #EB685C #98EB5C #5CE0EB
split-complementary
#AF5CEB #E0EB5C #5CEB68
monochromatic
#7316B6 #9425E4 #AF5CEB #CA93F2 #E5C9F8

Accessibility & contrast

On white

3.78
#AF5CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#AF5CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CEB
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CEB#FFFFFF#000000##000000
##AF5CEB1.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1580EF
Deuteranopia (green-blind)
#4584E8
Tritanopia (blue-blind)
#A6789B
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5ceb;
/* rgb */ color: rgb(175, 92, 235);
/* oklch */ color: oklch(63.6% 0.212 308.3);
Tailwind
colors: {
  custom: {
    50: '#cb8ef2',
    500: '#af5ceb',
    950: '#000000',
  },
}
SCSS
$custom: #af5ceb;
$custom-light: #cb8ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ceb",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 274.825,
    "s": 78.142,
    "l": 64.118
  },
  "oklch": {
    "l": 0.63563,
    "c": 0.21249,
    "h": 308.3
  },
  "luminance": 0.22766
}

Semantic roles & 50–950 ramp

primary
#AF5CEB
secondary
#CDEAB8
accent
#DA0B62
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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