#AF6BFA#AF6BFA

#AF6BFA is a light, highly saturated violet. Relative luminance 0.265; OKLCH L 66.5% C 0.208 H 303.1°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#AF6BFA
RGBrgb(175, 107, 250)
HSLhsl(269, 93%, 70%)
HSVhsv(269, 57%, 98%)
CMYKcmyk(30%, 57.2%, 0%, 2%)
CIE-LABlab(58.54, 54.00, -61.54)
CIE-LCHlch(58.54, 81.87, 311.27°)
OKLaboklab(66.55% 0.1135 -0.174)
OKLCHoklch(66.55% 0.208 303.1)
XYZxyz(40.1883, 26.5315, 93.4278)
Luminance0.2653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6BFA #B6FA6B
analogous
#6B6FFA #AF6BFA #F66BFA
triadic
#AF6BFA #FAAF6B #6BFAAF
tetradic
#AF6BFA #FA6B6F #B6FA6B #6BFAF6
square
#AF6BFA #FA6B6F #B6FA6B #6BFAF6
split-complementary
#AF6BFA #FAF66B #6FFA6B
monochromatic
#7008E3 #8F30F8 #AF6BFA #CFA6FC #EFE1FE

Accessibility & contrast

On white

3.33
#AF6BFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#AF6BFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6BFA
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6BFA#FFFFFF#000000##000000
##AF6BFA1.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B8BFF
Deuteranopia (green-blind)
#498CF7
Tritanopia (blue-blind)
#A188A9
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #af6bfa;
/* rgb */ color: rgb(175, 107, 250);
/* oklch */ color: oklch(66.5% 0.208 303.1);
Tailwind
colors: {
  custom: {
    50: '#cb98fd',
    500: '#af6bfa',
    950: '#000000',
  },
}
SCSS
$custom: #af6bfa;
$custom-light: #cb98fd;
$custom-dark: #000000;
JSON
{
  "hex": "#af6bfa",
  "rgb": {
    "r": 175,
    "g": 107,
    "b": 250
  },
  "hsl": {
    "h": 268.531,
    "s": 93.464,
    "l": 70
  },
  "oklch": {
    "l": 0.6655,
    "c": 0.20771,
    "h": 303.1
  },
  "luminance": 0.26531
}

Semantic roles & 50–950 ramp

primary
#AF6BFA
secondary
#E1F4CC
accent
#E60078
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #AF6BFA

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

Preview Lab → · Contrast checker → · Palette generator →

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