#AF6BFE#AF6BFE

#AF6BFE is a light, highly saturated violet. Relative luminance 0.268; OKLCH L 66.8% C 0.212 H 302.3°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#AF6BFE
RGBrgb(175, 107, 254)
HSLhsl(268, 99%, 71%)
HSVhsv(268, 58%, 100%)
CMYKcmyk(31.1%, 57.9%, 0%, 0.4%)
CIE-LABlab(58.77, 54.94, -63.37)
CIE-LCHlch(58.77, 83.87, 310.93°)
OKLaboklab(66.8% 0.1135 -0.1793)
OKLCHoklch(66.8% 0.212 302.3)
XYZxyz(40.8222, 26.7851, 96.7661)
Luminance0.2678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6BFE #BAFE6B
analogous
#6B70FE #AF6BFE #F86BFE
triadic
#AF6BFE #FEAF6B #6BFEAF
tetradic
#AF6BFE #FE6B70 #BAFE6B #6BFEF8
square
#AF6BFE #FE6B70 #BAFE6B #6BFEF8
split-complementary
#AF6BFE #FEF86B #70FE6B
monochromatic
#6E02ED #8E2EFE #AF6BFE #D0A8FE #EFE1FF

Accessibility & contrast

On white

3.30
#AF6BFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#AF6BFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6BFE
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6BFE#FFFFFF#000000##000000
##AF6BFE1.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#238CFF
Deuteranopia (green-blind)
#448DFB
Tritanopia (blue-blind)
#A089AB
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #af6bfe;
/* rgb */ color: rgb(175, 107, 254);
/* oklch */ color: oklch(66.8% 0.212 302.3);
Tailwind
colors: {
  custom: {
    50: '#cb98ff',
    500: '#af6bfe',
    950: '#000000',
  },
}
SCSS
$custom: #af6bfe;
$custom-light: #cb98ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af6bfe",
  "rgb": {
    "r": 175,
    "g": 107,
    "b": 254
  },
  "hsl": {
    "h": 267.755,
    "s": 98.658,
    "l": 70.784
  },
  "oklch": {
    "l": 0.668,
    "c": 0.21222,
    "h": 302.3
  },
  "luminance": 0.26785
}

Semantic roles & 50–950 ramp

primary
#AF6BFE
secondary
#E4F6CF
accent
#E6007B
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #AF6BFE

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

Preview Lab → · Contrast checker → · Palette generator →

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