#AF5FDE#AF5FDE

#AF5FDE is a light, vivid violet. Relative luminance 0.226; OKLCH L 63.2% C 0.194 H 311.1°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#AF5FDE
RGBrgb(175, 95, 222)
HSLhsl(278, 66%, 62%)
HSVhsv(278, 57%, 87%)
CMYKcmyk(21.2%, 57.2%, 0%, 12.9%)
CIE-LABlab(54.63, 53.79, -52.15)
CIE-LCHlch(54.63, 74.92, 315.88°)
OKLaboklab(63.17% 0.1279 -0.1464)
OKLCHoklch(63.17% 0.194 311.1)
XYZxyz(34.9538, 22.5731, 71.6088)
Luminance0.2257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FDE #8EDE5F
analogous
#705FDE #AF5FDE #DE5FCE
triadic
#AF5FDE #DEAF5F #5FDEAF
tetradic
#AF5FDE #DE705F #8EDE5F #5FCEDE
square
#AF5FDE #DE705F #8EDE5F #5FCEDE
split-complementary
#AF5FDE #CEDE5F #5FDE70
monochromatic
#7221A1 #962CD4 #AF5FDE #C892E8 #E2C4F3

Accessibility & contrast

On white

3.81
#AF5FDE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#AF5FDE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FDE
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FDE#FFFFFF#000000##000000
##AF5FDE1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#357FE2
Deuteranopia (green-blind)
#5484DB
Tritanopia (blue-blind)
#A97696
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5fde;
/* rgb */ color: rgb(175, 95, 222);
/* oklch */ color: oklch(63.2% 0.194 311.1);
Tailwind
colors: {
  custom: {
    50: '#ca90e9',
    500: '#af5fde',
    950: '#000000',
  },
}
SCSS
$custom: #af5fde;
$custom-light: #ca90e9;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fde",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 222
  },
  "hsl": {
    "h": 277.795,
    "s": 65.803,
    "l": 62.157
  },
  "oklch": {
    "l": 0.63174,
    "c": 0.19441,
    "h": 311.1
  },
  "luminance": 0.22572
}

Semantic roles & 50–950 ramp

primary
#AF5FDE
secondary
#C6E4B5
accent
#CE185B
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #AF5FDE

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

Preview Lab → · Contrast checker → · Palette generator →

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