#AF5BEA#AF5BEA

#AF5BEA is a light, highly saturated violet. Relative luminance 0.225; OKLCH L 63.4% C 0.213 H 308.6°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#AF5BEA
RGBrgb(175, 91, 234)
HSLhsl(275, 77%, 64%)
HSVhsv(275, 61%, 92%)
CMYKcmyk(25.2%, 61.1%, 0%, 8.2%)
CIE-LABlab(54.59, 58.38, -58.96)
CIE-LCHlch(54.59, 82.97, 314.72°)
OKLaboklab(63.37% 0.1328 -0.1663)
OKLCHoklch(63.37% 0.213 308.6)
XYZxyz(36.2686, 22.5372, 80.2654)
Luminance0.2254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BEA #96EA5B
analogous
#675BEA #AF5BEA #EA5BDD
triadic
#AF5BEA #EAAF5B #5BEAAF
tetradic
#AF5BEA #EA675B #96EA5B #5BDDEA
square
#AF5BEA #EA675B #96EA5B #5BDDEA
split-complementary
#AF5BEA #DDEA5B #5BEA67
monochromatic
#7317B4 #9525E3 #AF5BEA #C991F1 #E4C8F8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF5BEA#FFFFFF#000000##000000
##AF5BEA1.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)
#147FEE
Deuteranopia (green-blind)
#4584E7
Tritanopia (blue-blind)
#A6779A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5bea;
/* rgb */ color: rgb(175, 91, 234);
/* oklch */ color: oklch(63.4% 0.213 308.6);
Tailwind
colors: {
  custom: {
    50: '#cb8ef1',
    500: '#af5bea',
    950: '#000000',
  },
}
SCSS
$custom: #af5bea;
$custom-light: #cb8ef1;
$custom-dark: #000000;
JSON
{
  "hex": "#af5bea",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 234
  },
  "hsl": {
    "h": 275.245,
    "s": 77.297,
    "l": 63.725
  },
  "oklch": {
    "l": 0.6337,
    "c": 0.21283,
    "h": 308.6
  },
  "luminance": 0.22537
}

Semantic roles & 50–950 ramp

primary
#AF5BEA
secondary
#CCEAB7
accent
#DA0C61
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140D17
muted
#827D85

Preview Lab

Preview with #AF5BEA

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

Preview Lab → · Contrast checker → · Palette generator →

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