#AC51F2#AC51F2

#AC51F2 is a light, highly saturated violet. Relative luminance 0.211; OKLCH L 62.3% C 0.233 H 306.7°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#AC51F2
RGBrgb(172, 81, 242)
HSLhsl(274, 86%, 63%)
HSVhsv(274, 67%, 95%)
CMYKcmyk(28.9%, 66.5%, 0%, 5.1%)
CIE-LABlab(53.02, 64.18, -65.98)
CIE-LCHlch(53.02, 92.05, 314.21°)
OKLaboklab(62.32% 0.1396 -0.187)
OKLCHoklch(62.32% 0.233 306.7)
XYZxyz(35.9793, 21.0667, 86.1580)
Luminance0.2107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC51F2 #97F251
analogous
#5B51F2 #AC51F2 #F251E7
triadic
#AC51F2 #F2AC51 #51F2AC
tetradic
#AC51F2 #F25B51 #97F251 #51E7F2
square
#AC51F2 #F25B51 #97F251 #51E7F2
split-complementary
#AC51F2 #E7F251 #51F25B
monochromatic
#700EBB #9118EE #AC51F2 #C78AF6 #E2C3FB

Accessibility & contrast

On white

4.03
#AC51F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#AC51F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC51F2
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC51F2#FFFFFF#000000##000000
##AC51F21.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF7
Deuteranopia (green-blind)
#277FEE
Tritanopia (blue-blind)
#A0749B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ac51f2;
/* rgb */ color: rgb(172, 81, 242);
/* oklch */ color: oklch(62.3% 0.233 306.7);
Tailwind
colors: {
  custom: {
    50: '#ca88f7',
    500: '#ac51f2',
    950: '#000000',
  },
}
SCSS
$custom: #ac51f2;
$custom-light: #ca88f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ac51f2",
  "rgb": {
    "r": 172,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 273.913,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.62319,
    "c": 0.23335,
    "h": 306.7
  },
  "luminance": 0.21066
}

Semantic roles & 50–950 ramp

primary
#AC51F2
secondary
#CCECB3
accent
#E30364
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140C17
muted
#827D85

Preview Lab

Preview with #AC51F2

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

Preview Lab → · Contrast checker → · Palette generator →

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