#AF5CEE#AF5CEE

#AF5CEE is a light, highly saturated violet. Relative luminance 0.229; OKLCH L 63.8% C 0.216 H 307.6°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#AF5CEE
RGBrgb(175, 92, 238)
HSLhsl(274, 81%, 65%)
HSVhsv(274, 61%, 93%)
CMYKcmyk(26.5%, 61.3%, 0%, 6.7%)
CIE-LABlab(55.01, 58.78, -60.52)
CIE-LCHlch(55.01, 84.37, 314.16°)
OKLaboklab(63.75% 0.1315 -0.1709)
OKLCHoklch(63.75% 0.216 307.6)
XYZxyz(36.9358, 22.9418, 83.3548)
Luminance0.2294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CEE #9BEE5C
analogous
#665CEE #AF5CEE #EE5CE4
triadic
#AF5CEE #EEAF5C #5CEEAF
tetradic
#AF5CEE #EE665C #9BEE5C #5CE4EE
square
#AF5CEE #EE665C #9BEE5C #5CE4EE
split-complementary
#AF5CEE #E4EE5C #5CEE66
monochromatic
#7314BC #9425E8 #AF5CEE #CA93F4 #E5CBFA

Accessibility & contrast

On white

3.76
#AF5CEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#AF5CEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CEE
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CEE#FFFFFF#000000##000000
##AF5CEE1.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0981F3
Deuteranopia (green-blind)
#4284EB
Tritanopia (blue-blind)
#A5799D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #af5cee;
/* rgb */ color: rgb(175, 92, 238);
/* oklch */ color: oklch(63.8% 0.216 307.6);
Tailwind
colors: {
  custom: {
    50: '#cb8ef4',
    500: '#af5cee',
    950: '#000000',
  },
}
SCSS
$custom: #af5cee;
$custom-light: #cb8ef4;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cee",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 238
  },
  "hsl": {
    "h": 274.11,
    "s": 81.111,
    "l": 64.706
  },
  "oklch": {
    "l": 0.63752,
    "c": 0.21564,
    "h": 307.6
  },
  "luminance": 0.22941
}

Semantic roles & 50–950 ramp

primary
#AF5CEE
secondary
#CFECBA
accent
#DD0864
background
#FCF9FF
surface
#F9F1FE
border
#D2CBD6
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5CEE

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

Preview Lab → · Contrast checker → · Palette generator →

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