#AF5FE7#AF5FE7

#AF5FE7 is a light, highly saturated violet. Relative luminance 0.231; OKLCH L 63.7% C 0.204 H 308.9°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#AF5FE7
RGBrgb(175, 95, 231)
HSLhsl(275, 74%, 64%)
HSVhsv(275, 59%, 91%)
CMYKcmyk(24.2%, 58.9%, 0%, 9.4%)
CIE-LABlab(55.14, 55.76, -56.39)
CIE-LCHlch(55.14, 79.30, 314.67°)
OKLaboklab(63.71% 0.128 -0.1588)
OKLCHoklch(63.71% 0.204 308.9)
XYZxyz(36.1924, 23.0685, 78.1319)
Luminance0.2307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FE7 #97E75F
analogous
#6B5FE7 #AF5FE7 #E75FDB
triadic
#AF5FE7 #E7AF5F #5FE7AF
tetradic
#AF5FE7 #E76B5F #97E75F #5FDBE7
square
#AF5FE7 #E76B5F #97E75F #5FDBE7
split-complementary
#AF5FE7 #DBE75F #5FE76B
monochromatic
#731BB1 #942ADF #AF5FE7 #CA94EF #E4C9F7

Accessibility & contrast

On white

3.74
#AF5FE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#AF5FE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FE7
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FE7#FFFFFF#000000##000000
##AF5FE71.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2981EB
Deuteranopia (green-blind)
#4D85E4
Tritanopia (blue-blind)
#A7799A
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #af5fe7;
/* rgb */ color: rgb(175, 95, 231);
/* oklch */ color: oklch(63.7% 0.204 308.9);
Tailwind
colors: {
  custom: {
    50: '#ca90ef',
    500: '#af5fe7',
    950: '#000000',
  },
}
SCSS
$custom: #af5fe7;
$custom-light: #ca90ef;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fe7",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 231
  },
  "hsl": {
    "h": 275.294,
    "s": 73.913,
    "l": 63.922
  },
  "oklch": {
    "l": 0.63714,
    "c": 0.20401,
    "h": 308.9
  },
  "luminance": 0.23068
}

Semantic roles & 50–950 ramp

primary
#AF5FE7
secondary
#CDE9B9
accent
#D60F61
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #AF5FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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