#AF5CF2#AF5CF2

#AF5CF2 is a light, highly saturated violet. Relative luminance 0.232; OKLCH L 64.0% C 0.220 H 306.7°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#AF5CF2
RGBrgb(175, 92, 242)
HSLhsl(273, 85%, 65%)
HSVhsv(273, 62%, 95%)
CMYKcmyk(27.7%, 62%, 0%, 5.1%)
CIE-LABlab(55.26, 59.68, -62.36)
CIE-LCHlch(55.26, 86.32, 313.74°)
OKLaboklab(64.01% 0.1313 -0.1763)
OKLCHoklch(64.01% 0.22 306.7)
XYZxyz(37.5300, 23.1795, 86.4842)
Luminance0.2318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CF2 #9FF25C
analogous
#645CF2 #AF5CF2 #F25CEA
triadic
#AF5CF2 #F2AF5C #5CF2AF
tetradic
#AF5CF2 #F2645C #9FF25C #5CEAF2
square
#AF5CF2 #F2645C #9FF25C #5CEAF2
split-complementary
#AF5CF2 #EAF25C #5CF264
monochromatic
#7310C4 #9323ED #AF5CF2 #CB95F7 #E7CDFB

Accessibility & contrast

On white

3.73
#AF5CF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#AF5CF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CF2
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CF2#FFFFFF#000000##000000
##AF5CF21.003.735.645.64
#FFFFFF3.731.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081F7
Deuteranopia (green-blind)
#3D85EF
Tritanopia (blue-blind)
#A47B9F
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #af5cf2;
/* rgb */ color: rgb(175, 92, 242);
/* oklch */ color: oklch(64.0% 0.220 306.7);
Tailwind
colors: {
  custom: {
    50: '#cb8ef7',
    500: '#af5cf2',
    950: '#000000',
  },
}
SCSS
$custom: #af5cf2;
$custom-light: #cb8ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cf2",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 242
  },
  "hsl": {
    "h": 273.2,
    "s": 85.227,
    "l": 65.49
  },
  "oklch": {
    "l": 0.64007,
    "c": 0.21985,
    "h": 306.7
  },
  "luminance": 0.23179
}

Semantic roles & 50–950 ramp

primary
#AF5CF2
secondary
#D2EEBC
accent
#E20467
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5CF2

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

Preview Lab → · Contrast checker → · Palette generator →

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