#AC51EB#AC51EB

#AC51EB is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.8% C 0.226 H 308.3°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#AC51EB
RGBrgb(172, 81, 235)
HSLhsl(275, 79%, 62%)
HSVhsv(275, 66%, 92%)
CMYKcmyk(26.8%, 65.5%, 0%, 7.8%)
CIE-LABlab(52.57, 62.65, -62.79)
CIE-LCHlch(52.57, 88.70, 314.93°)
OKLaboklab(61.85% 0.1402 -0.1776)
OKLCHoklch(61.85% 0.226 308.3)
XYZxyz(34.9480, 20.6542, 80.7268)
Luminance0.2065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC51EB #90EB51
analogous
#5F51EB #AC51EB #EB51DD
triadic
#AC51EB #EBAC51 #51EBAC
tetradic
#AC51EB #EB5F51 #90EB51 #51DDEB
square
#AC51EB #EB5F51 #90EB51 #51DDEB
split-complementary
#AC51EB #DDEB51 #51EB5F
monochromatic
#6F14AE #921AE5 #AC51EB #C688F1 #E0BFF8

Accessibility & contrast

On white

4.09
#AC51EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#AC51EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC51EB
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC51EB#FFFFFF#000000##000000
##AC51EB1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF0
Deuteranopia (green-blind)
#337EE8
Tritanopia (blue-blind)
#A27297
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ac51eb;
/* rgb */ color: rgb(172, 81, 235);
/* oklch */ color: oklch(61.8% 0.226 308.3);
Tailwind
colors: {
  custom: {
    50: '#c988f2',
    500: '#ac51eb',
    950: '#000000',
  },
}
SCSS
$custom: #ac51eb;
$custom-light: #c988f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ac51eb",
  "rgb": {
    "r": 172,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 275.455,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.61849,
    "c": 0.22631,
    "h": 308.3
  },
  "luminance": 0.20654
}

Semantic roles & 50–950 ramp

primary
#AC51EB
secondary
#C7E8B0
accent
#DC0A60
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AC51EB

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

Preview Lab → · Contrast checker → · Palette generator →

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