#AF5CF8#AF5CF8

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

Color values

HEX#AF5CF8
RGBrgb(175, 92, 248)
HSLhsl(272, 92%, 67%)
HSVhsv(272, 63%, 97%)
CMYKcmyk(29.4%, 62.9%, 0%, 2.7%)
CIE-LABlab(55.63, 61.03, -65.10)
CIE-LCHlch(55.63, 89.23, 313.15°)
OKLaboklab(64.4% 0.131 -0.1844)
OKLCHoklch(64.4% 0.226 305.4)
XYZxyz(38.4459, 23.5458, 91.3081)
Luminance0.2355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CF8 #A5F85C
analogous
#615CF8 #AF5CF8 #F85CF3
triadic
#AF5CF8 #F8AF5C #5CF8AF
tetradic
#AF5CF8 #F8615C #A5F85C #5CF3F8
square
#AF5CF8 #F8615C #A5F85C #5CF3F8
split-complementary
#AF5CF8 #F3F85C #5CF861
monochromatic
#7309D1 #9221F5 #AF5CF8 #CC97FB #E9D1FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF5CF8#FFFFFF#000000##000000
##AF5CF81.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)
#0083FD
Deuteranopia (green-blind)
#3586F5
Tritanopia (blue-blind)
#A27DA2
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #af5cf8;
/* rgb */ color: rgb(175, 92, 248);
/* oklch */ color: oklch(64.4% 0.226 305.4);
Tailwind
colors: {
  custom: {
    50: '#cb8ffb',
    500: '#af5cf8',
    950: '#000000',
  },
}
SCSS
$custom: #af5cf8;
$custom-light: #cb8ffb;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cf8",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 248
  },
  "hsl": {
    "h": 271.923,
    "s": 91.765,
    "l": 66.667
  },
  "oklch": {
    "l": 0.64397,
    "c": 0.22616,
    "h": 305.4
  },
  "luminance": 0.23546
}

Semantic roles & 50–950 ramp

primary
#AF5CF8
secondary
#D6F1BF
accent
#E6006B
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#140D17
muted
#837E85

Preview Lab

Preview with #AF5CF8

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

Preview Lab → · Contrast checker → · Palette generator →

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