#AF5BE9#AF5BE9

#AF5BE9 is a light, highly saturated violet. Relative luminance 0.225; OKLCH L 63.3% C 0.212 H 308.8°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#AF5BE9
RGBrgb(175, 91, 233)
HSLhsl(275, 76%, 64%)
HSVhsv(275, 61%, 91%)
CMYKcmyk(24.9%, 60.9%, 0%, 8.6%)
CIE-LABlab(54.53, 58.16, -58.49)
CIE-LCHlch(54.53, 82.49, 314.84°)
OKLaboklab(63.31% 0.1328 -0.165)
OKLCHoklch(63.31% 0.212 308.8)
XYZxyz(36.1253, 22.4799, 79.5110)
Luminance0.2248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BE9 #95E95B
analogous
#685BE9 #AF5BE9 #E95BDC
triadic
#AF5BE9 #E9AF5B #5BE9AF
tetradic
#AF5BE9 #E9685B #95E95B #5BDCE9
square
#AF5BE9 #E9685B #95E95B #5BDCE9
split-complementary
#AF5BE9 #DCE95B #5BE968
monochromatic
#7318B2 #9525E2 #AF5BE9 #C991F0 #E4C7F7

Accessibility & contrast

On white

3.82
#AF5BE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#AF5BE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BE9
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BE9#FFFFFF#000000##000000
##AF5BE91.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#177FED
Deuteranopia (green-blind)
#4684E6
Tritanopia (blue-blind)
#A7779A
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af5be9;
/* rgb */ color: rgb(175, 91, 233);
/* oklch */ color: oklch(63.3% 0.212 308.8);
Tailwind
colors: {
  custom: {
    50: '#cb8ef1',
    500: '#af5be9',
    950: '#000000',
  },
}
SCSS
$custom: #af5be9;
$custom-light: #cb8ef1;
$custom-dark: #000000;
JSON
{
  "hex": "#af5be9",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 233
  },
  "hsl": {
    "h": 275.493,
    "s": 76.344,
    "l": 63.529
  },
  "oklch": {
    "l": 0.63308,
    "c": 0.21178,
    "h": 308.8
  },
  "luminance": 0.22479
}

Semantic roles & 50–950 ramp

primary
#AF5BE9
secondary
#CBE9B7
accent
#D90D60
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140D17
muted
#827D85

Preview Lab

Preview with #AF5BE9

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

Preview Lab → · Contrast checker → · Palette generator →

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