#AF5CEF#AF5CEF

#AF5CEF is a light, highly saturated violet. Relative luminance 0.230; OKLCH L 63.8% C 0.217 H 307.3°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#AF5CEF
RGBrgb(175, 92, 239)
HSLhsl(274, 82%, 65%)
HSVhsv(274, 62%, 94%)
CMYKcmyk(26.8%, 61.5%, 0%, 6.3%)
CIE-LABlab(55.07, 59.01, -60.98)
CIE-LCHlch(55.07, 84.86, 314.06°)
OKLaboklab(63.82% 0.1314 -0.1723)
OKLCHoklch(63.82% 0.217 307.3)
XYZxyz(37.0831, 23.0007, 84.1306)
Luminance0.2300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CEF #9CEF5C
analogous
#665CEF #AF5CEF #EF5CE5
triadic
#AF5CEF #EFAF5C #5CEFAF
tetradic
#AF5CEF #EF665C #9CEF5C #5CE5EF
square
#AF5CEF #EF665C #9CEF5C #5CE5EF
split-complementary
#AF5CEF #E5EF5C #5CEF66
monochromatic
#7313BE #9424EA #AF5CEF #CA94F4 #E6CBFA

Accessibility & contrast

On white

3.75
#AF5CEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#AF5CEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CEF
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CEF#FFFFFF#000000##000000
##AF5CEF1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0481F4
Deuteranopia (green-blind)
#4185EC
Tritanopia (blue-blind)
#A57A9D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #af5cef;
/* rgb */ color: rgb(175, 92, 239);
/* oklch */ color: oklch(63.8% 0.217 307.3);
Tailwind
colors: {
  custom: {
    50: '#cb8ef5',
    500: '#af5cef',
    950: '#000000',
  },
}
SCSS
$custom: #af5cef;
$custom-light: #cb8ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cef",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 239
  },
  "hsl": {
    "h": 273.878,
    "s": 82.123,
    "l": 64.902
  },
  "oklch": {
    "l": 0.63816,
    "c": 0.2167,
    "h": 307.3
  },
  "luminance": 0.23
}

Semantic roles & 50–950 ramp

primary
#AF5CEF
secondary
#D0ECBA
accent
#DF0765
background
#FCF9FF
surface
#F9F1FE
border
#D2CBD6
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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