#AF5CEC#AF5CEC

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

Color values

HEX#AF5CEC
RGBrgb(175, 92, 236)
HSLhsl(275, 79%, 64%)
HSVhsv(275, 61%, 93%)
CMYKcmyk(25.8%, 61%, 0%, 7.5%)
CIE-LABlab(54.89, 58.34, -59.60)
CIE-LCHlch(54.89, 83.40, 314.39°)
OKLaboklab(63.63% 0.1315 -0.1682)
OKLCHoklch(63.63% 0.214 308)
XYZxyz(36.6436, 22.8249, 81.8159)
Luminance0.2282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CEC #99EC5C
analogous
#675CEC #AF5CEC #EC5CE1
triadic
#AF5CEC #ECAF5C #5CECAF
tetradic
#AF5CEC #EC675C #99EC5C #5CE1EC
square
#AF5CEC #EC675C #99EC5C #5CE1EC
split-complementary
#AF5CEC #E1EC5C #5CEC67
monochromatic
#7315B8 #9425E6 #AF5CEC #CA93F2 #E5CAF9

Accessibility & contrast

On white

3.77
#AF5CEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#AF5CEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CEC
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CEC#FFFFFF#000000##000000
##AF5CEC1.003.775.565.56
#FFFFFF3.771.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1280F1
Deuteranopia (green-blind)
#4484E9
Tritanopia (blue-blind)
#A6799C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5cec;
/* rgb */ color: rgb(175, 92, 236);
/* oklch */ color: oklch(63.6% 0.214 308.0);
Tailwind
colors: {
  custom: {
    50: '#cb8ef3',
    500: '#af5cec',
    950: '#000000',
  },
}
SCSS
$custom: #af5cec;
$custom-light: #cb8ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cec",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 236
  },
  "hsl": {
    "h": 274.583,
    "s": 79.121,
    "l": 64.314
  },
  "oklch": {
    "l": 0.63626,
    "c": 0.21354,
    "h": 308
  },
  "luminance": 0.22824
}

Semantic roles & 50–950 ramp

primary
#AF5CEC
secondary
#CEEBB9
accent
#DB0A63
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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