#AF5BE7#AF5BE7

#AF5BE7 is a light, highly saturated violet. Relative luminance 0.224; OKLCH L 63.2% C 0.210 H 309.3°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#AF5BE7
RGBrgb(175, 91, 231)
HSLhsl(276, 74%, 63%)
HSVhsv(276, 61%, 91%)
CMYKcmyk(24.2%, 60.6%, 0%, 9.4%)
CIE-LABlab(54.41, 57.72, -57.56)
CIE-LCHlch(54.41, 81.52, 315.08°)
OKLaboklab(63.18% 0.1328 -0.1623)
OKLCHoklch(63.18% 0.21 309.3)
XYZxyz(35.8413, 22.3663, 78.0148)
Luminance0.2237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BE7 #93E75B
analogous
#695BE7 #AF5BE7 #E75BD9
triadic
#AF5BE7 #E7AF5B #5BE7AF
tetradic
#AF5BE7 #E7695B #93E75B #5BD9E7
square
#AF5BE7 #E7695B #93E75B #5BD9E7
split-complementary
#AF5BE7 #D9E75B #5BE769
monochromatic
#7319AE #9526DF #AF5BE7 #C990EF #E3C6F7

Accessibility & contrast

On white

3.84
#AF5BE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#AF5BE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BE7
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BE7#FFFFFF#000000##000000
##AF5BE71.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C7FEB
Deuteranopia (green-blind)
#4883E4
Tritanopia (blue-blind)
#A77699
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af5be7;
/* rgb */ color: rgb(175, 91, 231);
/* oklch */ color: oklch(63.2% 0.210 309.3);
Tailwind
colors: {
  custom: {
    50: '#cb8eef',
    500: '#af5be7',
    950: '#000000',
  },
}
SCSS
$custom: #af5be7;
$custom-light: #cb8eef;
$custom-dark: #000000;
JSON
{
  "hex": "#af5be7",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 231
  },
  "hsl": {
    "h": 276,
    "s": 74.468,
    "l": 63.137
  },
  "oklch": {
    "l": 0.63183,
    "c": 0.20969,
    "h": 309.3
  },
  "luminance": 0.22366
}

Semantic roles & 50–950 ramp

primary
#AF5BE7
secondary
#CAE8B6
accent
#D70F5F
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140D16
muted
#827D84

Preview Lab

Preview with #AF5BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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