#AF5FEF#AF5FEF

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

Color values

HEX#AF5FEF
RGBrgb(175, 95, 239)
HSLhsl(273, 82%, 65%)
HSVhsv(273, 60%, 94%)
CMYKcmyk(26.8%, 60.3%, 0%, 6.3%)
CIE-LABlab(55.61, 57.54, -60.12)
CIE-LCHlch(55.61, 83.21, 313.75°)
OKLaboklab(64.21% 0.1279 -0.1698)
OKLCHoklch(64.21% 0.213 307)
XYZxyz(37.3481, 23.5308, 84.2190)
Luminance0.2353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FEF #9FEF5F
analogous
#675FEF #AF5FEF #EF5FE7
triadic
#AF5FEF #EFAF5F #5FEFAF
tetradic
#AF5FEF #EF675F #9FEF5F #5FE7EF
square
#AF5FEF #EF675F #9FEF5F #5FE7EF
split-complementary
#AF5FEF #E7EF5F #5FEF67
monochromatic
#7313C0 #9327E9 #AF5FEF #CB97F5 #E7CEFA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF5FEF#FFFFFF#000000##000000
##AF5FEF1.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)
#1882F4
Deuteranopia (green-blind)
#4586EC
Tritanopia (blue-blind)
#A57C9E
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #af5fef;
/* rgb */ color: rgb(175, 95, 239);
/* oklch */ color: oklch(64.2% 0.213 307.0);
Tailwind
colors: {
  custom: {
    50: '#cb90f5',
    500: '#af5fef',
    950: '#000000',
  },
}
SCSS
$custom: #af5fef;
$custom-light: #cb90f5;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fef",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 239
  },
  "hsl": {
    "h": 273.333,
    "s": 81.818,
    "l": 65.49
  },
  "oklch": {
    "l": 0.64209,
    "c": 0.21256,
    "h": 307
  },
  "luminance": 0.2353
}

Semantic roles & 50–950 ramp

primary
#AF5FEF
secondary
#D2EDBD
accent
#DE0767
background
#FCF9FF
surface
#F9F1FE
border
#D2CBD6
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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