#AF5EF2#AF5EF2

#AF5EF2 is a light, highly saturated violet. Relative luminance 0.235; OKLCH L 64.3% C 0.217 H 306.4°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#AF5EF2
RGBrgb(175, 94, 242)
HSLhsl(273, 85%, 66%)
HSVhsv(273, 61%, 95%)
CMYKcmyk(27.7%, 61.2%, 0%, 5.1%)
CIE-LABlab(55.61, 58.70, -61.79)
CIE-LCHlch(55.61, 85.23, 313.53°)
OKLaboklab(64.27% 0.129 -0.1747)
OKLCHoklch(64.27% 0.217 306.4)
XYZxyz(37.7055, 23.5305, 86.5427)
Luminance0.2353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5EF2 #A1F25E
analogous
#655EF2 #AF5EF2 #F25EEB
triadic
#AF5EF2 #F2AF5E #5EF2AF
tetradic
#AF5EF2 #F2655E #A1F25E #5EEBF2
square
#AF5EF2 #F2655E #A1F25E #5EEBF2
split-complementary
#AF5EF2 #EBF25E #5EF265
monochromatic
#7310C6 #9325ED #AF5EF2 #CB97F7 #E7CFFB

Accessibility & contrast

On white

3.68
#AF5EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#AF5EF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5EF2
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5EF2#FFFFFF#000000##000000
##AF5EF21.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0483F7
Deuteranopia (green-blind)
#4086EF
Tritanopia (blue-blind)
#A47CA0
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #af5ef2;
/* rgb */ color: rgb(175, 94, 242);
/* oklch */ color: oklch(64.3% 0.217 306.4);
Tailwind
colors: {
  custom: {
    50: '#cb90f7',
    500: '#af5ef2',
    950: '#000000',
  },
}
SCSS
$custom: #af5ef2;
$custom-light: #cb90f7;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ef2",
  "rgb": {
    "r": 175,
    "g": 94,
    "b": 242
  },
  "hsl": {
    "h": 272.838,
    "s": 85.057,
    "l": 65.882
  },
  "oklch": {
    "l": 0.64267,
    "c": 0.21713,
    "h": 306.4
  },
  "luminance": 0.2353
}

Semantic roles & 50–950 ramp

primary
#AF5EF2
secondary
#D4EEBD
accent
#E20468
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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