#AF6BEC#AF6BEC

#AF6BEC is a light, vivid violet. Relative luminance 0.257; OKLCH L 65.7% C 0.192 H 306.2°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#AF6BEC
RGBrgb(175, 107, 236)
HSLhsl(272, 77%, 67%)
HSVhsv(272, 55%, 93%)
CMYKcmyk(25.8%, 54.7%, 0%, 7.5%)
CIE-LABlab(57.74, 50.75, -55.04)
CIE-LCHlch(57.74, 74.87, 312.67°)
OKLaboklab(65.71% 0.1132 -0.1549)
OKLCHoklch(65.71% 0.192 306.2)
XYZxyz(38.0740, 25.6858, 82.2927)
Luminance0.2569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6BEC #A8EC6B
analogous
#6F6BEC #AF6BEC #EC6BE9
triadic
#AF6BEC #ECAF6B #6BECAF
tetradic
#AF6BEC #EC6F6B #A8EC6B #6BE9EC
square
#AF6BEC #EC6F6B #A8EC6B #6BE9EC
split-complementary
#AF6BEC #E9EC6B #6BEC6F
monochromatic
#7319C4 #9235E5 #AF6BEC #CCA1F3 #EAD7FA

Accessibility & contrast

On white

3.42
#AF6BEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#AF6BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6BEC
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6BEC#FFFFFF#000000##000000
##AF6BEC1.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E88F0
Deuteranopia (green-blind)
#568BE9
Tritanopia (blue-blind)
#A583A1
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #af6bec;
/* rgb */ color: rgb(175, 107, 236);
/* oklch */ color: oklch(65.7% 0.192 306.2);
Tailwind
colors: {
  custom: {
    50: '#ca98f3',
    500: '#af6bec',
    950: '#000000',
  },
}
SCSS
$custom: #af6bec;
$custom-light: #ca98f3;
$custom-dark: #000000;
JSON
{
  "hex": "#af6bec",
  "rgb": {
    "r": 175,
    "g": 107,
    "b": 236
  },
  "hsl": {
    "h": 271.628,
    "s": 77.246,
    "l": 67.255
  },
  "oklch": {
    "l": 0.65705,
    "c": 0.19189,
    "h": 306.2
  },
  "luminance": 0.25685
}

Semantic roles & 50–950 ramp

primary
#AF6BEC
secondary
#D8EEC5
accent
#D90C6D
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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