#AF5FEA#AF5FEA

#AF5FEA is a light, highly saturated violet. Relative luminance 0.232; OKLCH L 63.9% C 0.207 H 308.2°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#AF5FEA
RGBrgb(175, 95, 234)
HSLhsl(275, 77%, 65%)
HSVhsv(275, 59%, 92%)
CMYKcmyk(25.2%, 59.4%, 0%, 8.2%)
CIE-LABlab(55.32, 56.42, -57.80)
CIE-LCHlch(55.32, 80.77, 314.31°)
OKLaboklab(63.9% 0.128 -0.163)
OKLCHoklch(63.9% 0.207 308.2)
XYZxyz(36.6197, 23.2394, 80.3825)
Luminance0.2324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FEA #9AEA5F
analogous
#695FEA #AF5FEA #EA5FE0
triadic
#AF5FEA #EAAF5F #5FEAAF
tetradic
#AF5FEA #EA695F #9AEA5F #5FE0EA
square
#AF5FEA #EA695F #9AEA5F #5FE0EA
split-complementary
#AF5FEA #E0EA5F #5FEA69
monochromatic
#7318B7 #9429E3 #AF5FEA #CA95F1 #E5CBF8

Accessibility & contrast

On white

3.72
#AF5FEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#AF5FEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FEA
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FEA#FFFFFF#000000##000000
##AF5FEA1.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2381EE
Deuteranopia (green-blind)
#4A85E7
Tritanopia (blue-blind)
#A67A9C
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #af5fea;
/* rgb */ color: rgb(175, 95, 234);
/* oklch */ color: oklch(63.9% 0.207 308.2);
Tailwind
colors: {
  custom: {
    50: '#ca90f1',
    500: '#af5fea',
    950: '#000000',
  },
}
SCSS
$custom: #af5fea;
$custom-light: #ca90f1;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fea",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 234
  },
  "hsl": {
    "h": 274.532,
    "s": 76.796,
    "l": 64.51
  },
  "oklch": {
    "l": 0.63898,
    "c": 0.20721,
    "h": 308.2
  },
  "luminance": 0.23239
}

Semantic roles & 50–950 ramp

primary
#AF5FEA
secondary
#CFEABA
accent
#D90C63
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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