#AF5CED#AF5CED

#AF5CED is a light, highly saturated violet. Relative luminance 0.229; OKLCH L 63.7% C 0.215 H 307.8°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#AF5CED
RGBrgb(175, 92, 237)
HSLhsl(274, 80%, 65%)
HSVhsv(274, 61%, 93%)
CMYKcmyk(26.2%, 61.2%, 0%, 7.1%)
CIE-LABlab(54.95, 58.56, -60.06)
CIE-LCHlch(54.95, 83.89, 314.28°)
OKLaboklab(63.69% 0.1315 -0.1696)
OKLCHoklch(63.69% 0.215 307.8)
XYZxyz(36.7893, 22.8832, 82.5832)
Luminance0.2288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CED #9AED5C
analogous
#675CED #AF5CED #ED5CE2
triadic
#AF5CED #EDAF5C #5CEDAF
tetradic
#AF5CED #ED675C #9AED5C #5CE2ED
square
#AF5CED #ED675C #9AED5C #5CE2ED
split-complementary
#AF5CED #E2ED5C #5CED67
monochromatic
#7315BA #9425E7 #AF5CED #CA93F3 #E5CAF9

Accessibility & contrast

On white

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

On black

5.58
#AF5CED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CED
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CED#FFFFFF#000000##000000
##AF5CED1.003.775.585.58
#FFFFFF3.771.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0E80F2
Deuteranopia (green-blind)
#4384EA
Tritanopia (blue-blind)
#A5799C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5ced;
/* rgb */ color: rgb(175, 92, 237);
/* oklch */ color: oklch(63.7% 0.215 307.8);
Tailwind
colors: {
  custom: {
    50: '#cb8ef4',
    500: '#af5ced',
    950: '#000000',
  },
}
SCSS
$custom: #af5ced;
$custom-light: #cb8ef4;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ced",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 237
  },
  "hsl": {
    "h": 274.345,
    "s": 80.11,
    "l": 64.51
  },
  "oklch": {
    "l": 0.63689,
    "c": 0.21459,
    "h": 307.8
  },
  "luminance": 0.22883
}

Semantic roles & 50–950 ramp

primary
#AF5CED
secondary
#CFEBB9
accent
#DC0963
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5CED

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

Preview Lab → · Contrast checker → · Palette generator →

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