#AF5EF7#AF5EF7

#AF5EF7 is a light, highly saturated violet. Relative luminance 0.238; OKLCH L 64.6% C 0.222 H 305.4°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#AF5EF7
RGBrgb(175, 94, 247)
HSLhsl(272, 91%, 67%)
HSVhsv(272, 62%, 97%)
CMYKcmyk(29.1%, 61.9%, 0%, 3.1%)
CIE-LABlab(55.92, 59.83, -64.08)
CIE-LCHlch(55.92, 87.67, 313.04°)
OKLaboklab(64.59% 0.1288 -0.1814)
OKLCHoklch(64.59% 0.222 305.4)
XYZxyz(38.4667, 23.8350, 90.5518)
Luminance0.2384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5EF7 #A6F75E
analogous
#635EF7 #AF5EF7 #F75EF2
triadic
#AF5EF7 #F7AF5E #5EF7AF
tetradic
#AF5EF7 #F7635E #A6F75E #5EF2F7
square
#AF5EF7 #F7635E #A6F75E #5EF2F7
split-complementary
#AF5EF7 #F2F75E #5EF763
monochromatic
#730AD0 #9224F4 #AF5EF7 #CC98FA #E9D3FD

Accessibility & contrast

On white

3.64
#AF5EF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#AF5EF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5EF7
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5EF7#FFFFFF#000000##000000
##AF5EF71.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0084FC
Deuteranopia (green-blind)
#3A86F4
Tritanopia (blue-blind)
#A27EA2
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #af5ef7;
/* rgb */ color: rgb(175, 94, 247);
/* oklch */ color: oklch(64.6% 0.222 305.4);
Tailwind
colors: {
  custom: {
    50: '#cb90fb',
    500: '#af5ef7',
    950: '#000000',
  },
}
SCSS
$custom: #af5ef7;
$custom-light: #cb90fb;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ef7",
  "rgb": {
    "r": 175,
    "g": 94,
    "b": 247
  },
  "hsl": {
    "h": 271.765,
    "s": 90.533,
    "l": 66.863
  },
  "oklch": {
    "l": 0.64588,
    "c": 0.22245,
    "h": 305.4
  },
  "luminance": 0.23835
}

Semantic roles & 50–950 ramp

primary
#AF5EF7
secondary
#D7F1C0
accent
#E6006C
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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