#AF5CF6#AF5CF6

#AF5CF6 is a light, highly saturated violet. Relative luminance 0.234; OKLCH L 64.3% C 0.224 H 305.8°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#AF5CF6
RGBrgb(175, 92, 246)
HSLhsl(272, 90%, 66%)
HSVhsv(272, 63%, 96%)
CMYKcmyk(28.9%, 62.6%, 0%, 3.5%)
CIE-LABlab(55.50, 60.58, -64.19)
CIE-LCHlch(55.50, 88.26, 313.34°)
OKLaboklab(64.27% 0.1311 -0.1817)
OKLCHoklch(64.27% 0.224 305.8)
XYZxyz(38.1373, 23.4224, 89.6828)
Luminance0.2342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CF6 #A3F65C
analogous
#625CF6 #AF5CF6 #F65CF0
triadic
#AF5CF6 #F6AF5C #5CF6AF
tetradic
#AF5CF6 #F6625C #A3F65C #5CF0F6
square
#AF5CF6 #F6625C #A3F65C #5CF0F6
split-complementary
#AF5CF6 #F0F65C #5CF662
monochromatic
#730BCC #9322F3 #AF5CF6 #CB96F9 #E8D0FC

Accessibility & contrast

On white

3.69
#AF5CF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#AF5CF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CF6
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CF6#FFFFFF#000000##000000
##AF5CF61.003.695.685.68
#FFFFFF3.691.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082FB
Deuteranopia (green-blind)
#3885F3
Tritanopia (blue-blind)
#A37CA1
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #af5cf6;
/* rgb */ color: rgb(175, 92, 246);
/* oklch */ color: oklch(64.3% 0.224 305.8);
Tailwind
colors: {
  custom: {
    50: '#cb8ffa',
    500: '#af5cf6',
    950: '#000000',
  },
}
SCSS
$custom: #af5cf6;
$custom-light: #cb8ffa;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cf6",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 246
  },
  "hsl": {
    "h": 272.338,
    "s": 89.535,
    "l": 66.275
  },
  "oklch": {
    "l": 0.64266,
    "c": 0.22406,
    "h": 305.8
  },
  "luminance": 0.23422
}

Semantic roles & 50–950 ramp

primary
#AF5CF6
secondary
#D5F0BE
accent
#E6006A
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5CF6

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

Preview Lab → · Contrast checker → · Palette generator →

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