#AF5BEC#AF5BEC

#AF5BEC is a light, highly saturated violet. Relative luminance 0.227; OKLCH L 63.5% C 0.215 H 308.1°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#AF5BEC
RGBrgb(175, 91, 236)
HSLhsl(275, 79%, 64%)
HSVhsv(275, 61%, 93%)
CMYKcmyk(25.8%, 61.4%, 0%, 7.5%)
CIE-LABlab(54.71, 58.82, -59.89)
CIE-LCHlch(54.71, 83.94, 314.49°)
OKLaboklab(63.5% 0.1327 -0.1691)
OKLCHoklch(63.5% 0.215 308.1)
XYZxyz(36.5575, 22.6528, 81.7872)
Luminance0.2265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BEC #98EC5B
analogous
#675BEC #AF5BEC #EC5BE0
triadic
#AF5BEC #ECAF5B #5BECAF
tetradic
#AF5BEC #EC675B #98EC5B #5BE0EC
square
#AF5BEC #EC675B #98EC5B #5BE0EC
split-complementary
#AF5BEC #E0EC5B #5BEC67
monochromatic
#7315B7 #9424E6 #AF5BEC #CA92F2 #E5C9F9

Accessibility & contrast

On white

3.80
#AF5BEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#AF5BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BEC
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BEC#FFFFFF#000000##000000
##AF5BEC1.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0C80F1
Deuteranopia (green-blind)
#4384E9
Tritanopia (blue-blind)
#A6789B
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5bec;
/* rgb */ color: rgb(175, 91, 236);
/* oklch */ color: oklch(63.5% 0.215 308.1);
Tailwind
colors: {
  custom: {
    50: '#cb8ef3',
    500: '#af5bec',
    950: '#000000',
  },
}
SCSS
$custom: #af5bec;
$custom-light: #cb8ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#af5bec",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 236
  },
  "hsl": {
    "h": 274.759,
    "s": 79.235,
    "l": 64.118
  },
  "oklch": {
    "l": 0.63496,
    "c": 0.21492,
    "h": 308.1
  },
  "luminance": 0.22652
}

Semantic roles & 50–950 ramp

primary
#AF5BEC
secondary
#CDEBB8
accent
#DC0A62
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140D17
muted
#827D85

Preview Lab

Preview with #AF5BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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