#AF5FEB#AF5FEB

#AF5FEB is a light, highly saturated violet. Relative luminance 0.233; OKLCH L 64.0% C 0.208 H 307.9°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#AF5FEB
RGBrgb(175, 95, 235)
HSLhsl(274, 78%, 65%)
HSVhsv(274, 60%, 92%)
CMYKcmyk(25.5%, 59.6%, 0%, 7.8%)
CIE-LABlab(55.38, 56.64, -58.26)
CIE-LCHlch(55.38, 81.26, 314.19°)
OKLaboklab(63.96% 0.128 -0.1643)
OKLCHoklch(63.96% 0.208 307.9)
XYZxyz(36.7638, 23.2970, 81.1412)
Luminance0.2330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FEB #9BEB5F
analogous
#695FEB #AF5FEB #EB5FE1
triadic
#AF5FEB #EBAF5F #5FEBAF
tetradic
#AF5FEB #EB695F #9BEB5F #5FE1EB
square
#AF5FEB #EB695F #9BEB5F #5FE1EB
split-complementary
#AF5FEB #E1EB5F #5FEB69
monochromatic
#7317B9 #9429E4 #AF5FEB #CA95F2 #E5CCF9

Accessibility & contrast

On white

3.71
#AF5FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#AF5FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FEB
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FEB#FFFFFF#000000##000000
##AF5FEB1.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2182EF
Deuteranopia (green-blind)
#4985E8
Tritanopia (blue-blind)
#A67A9C
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #af5feb;
/* rgb */ color: rgb(175, 95, 235);
/* oklch */ color: oklch(64.0% 0.208 307.9);
Tailwind
colors: {
  custom: {
    50: '#cb90f2',
    500: '#af5feb',
    950: '#000000',
  },
}
SCSS
$custom: #af5feb;
$custom-light: #cb90f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af5feb",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 235
  },
  "hsl": {
    "h": 274.286,
    "s": 77.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.63959,
    "c": 0.20828,
    "h": 307.9
  },
  "luminance": 0.23297
}

Semantic roles & 50–950 ramp

primary
#AF5FEB
secondary
#CFEBBB
accent
#DA0B64
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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