#AF3CFB#AF3CFB

#AF3CFB is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 61.2% C 0.266 H 307.4°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AF3CFB
RGBrgb(175, 60, 251)
HSLhsl(276, 96%, 61%)
HSVhsv(276, 76%, 98%)
CMYKcmyk(30.3%, 76.1%, 0%, 1.6%)
CIE-LABlab(51.05, 75.10, -74.19)
CIE-LCHlch(51.05, 105.56, 315.35°)
OKLaboklab(61.2% 0.1614 -0.2109)
OKLCHoklch(61.2% 0.266 307.4)
XYZxyz(36.7039, 19.3112, 93.0419)
Luminance0.1931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3CFB #88FB3C
analogous
#4F3CFB #AF3CFB #FB3CE7
triadic
#AF3CFB #FBAF3C #3CFBAF
tetradic
#AF3CFB #FB4F3C #88FB3C #3CE7FB
square
#AF3CFB #FB4F3C #88FB3C #3CE7FB
split-complementary
#AF3CFB #E7FB3C #3CFB4F
monochromatic
#7104B9 #9505F5 #AF3CFB #C878FC #E0B4FD

Accessibility & contrast

On white

4.32
#AF3CFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#AF3CFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF3CFB
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3CFB#FFFFFF#000000##000000
##AF3CFB1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076FF
Deuteranopia (green-blind)
#007AF7
Tritanopia (blue-blind)
#A26C9B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af3cfb;
/* rgb */ color: rgb(175, 60, 251);
/* oklch */ color: oklch(61.2% 0.266 307.4);
Tailwind
colors: {
  custom: {
    50: '#cd7efe',
    500: '#af3cfb',
    950: '#000000',
  },
}
SCSS
$custom: #af3cfb;
$custom-light: #cd7efe;
$custom-dark: #000000;
JSON
{
  "hex": "#af3cfb",
  "rgb": {
    "r": 175,
    "g": 60,
    "b": 251
  },
  "hsl": {
    "h": 276.126,
    "s": 95.98,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61198,
    "c": 0.2656,
    "h": 307.4
  },
  "luminance": 0.19311
}

Semantic roles & 50–950 ramp

primary
#AF3CFB
secondary
#C2EDA5
accent
#E6005B
background
#FDF8FF
surface
#FAEFFF
border
#D3CAD7
text
#140B18
muted
#837C86

Preview Lab

Preview with #AF3CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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