#AF5FED#AF5FED

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

Color values

HEX#AF5FED
RGBrgb(175, 95, 237)
HSLhsl(274, 80%, 65%)
HSVhsv(274, 60%, 93%)
CMYKcmyk(26.2%, 59.9%, 0%, 7.1%)
CIE-LABlab(55.50, 57.09, -59.19)
CIE-LCHlch(55.50, 82.24, 313.97°)
OKLaboklab(64.08% 0.128 -0.167)
OKLCHoklch(64.08% 0.21 307.5)
XYZxyz(37.0543, 23.4133, 82.6715)
Luminance0.2341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FED #9DED5F
analogous
#685FED #AF5FED #ED5FE4
triadic
#AF5FED #EDAF5F #5FEDAF
tetradic
#AF5FED #ED685F #9DED5F #5FE4ED
square
#AF5FED #ED685F #9DED5F #5FE4ED
split-complementary
#AF5FED #E4ED5F #5FED68
monochromatic
#7315BC #9328E7 #AF5FED #CB96F3 #E6CDF9

Accessibility & contrast

On white

3.70
#AF5FED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF5FED#FFFFFF#000000##000000
##AF5FED1.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D82F1
Deuteranopia (green-blind)
#4786EA
Tritanopia (blue-blind)
#A57B9D
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #af5fed;
/* rgb */ color: rgb(175, 95, 237);
/* oklch */ color: oklch(64.1% 0.210 307.5);
Tailwind
colors: {
  custom: {
    50: '#cb90f3',
    500: '#af5fed',
    950: '#000000',
  },
}
SCSS
$custom: #af5fed;
$custom-light: #cb90f3;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fed",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 237
  },
  "hsl": {
    "h": 273.803,
    "s": 79.775,
    "l": 65.098
  },
  "oklch": {
    "l": 0.64084,
    "c": 0.21042,
    "h": 307.5
  },
  "luminance": 0.23413
}

Semantic roles & 50–950 ramp

primary
#AF5FED
secondary
#D1ECBC
accent
#DC0965
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5FED

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

Preview Lab → · Contrast checker → · Palette generator →

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