#AB54F2#AB54F2

#AB54F2 is a light, highly saturated violet. Relative luminance 0.214; OKLCH L 62.6% C 0.229 H 306.1°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#AB54F2
RGBrgb(171, 84, 242)
HSLhsl(273, 86%, 64%)
HSVhsv(273, 65%, 95%)
CMYKcmyk(29.3%, 65.3%, 0%, 5.1%)
CIE-LABlab(53.40, 62.61, -65.39)
CIE-LCHlch(53.40, 90.53, 313.76°)
OKLaboklab(62.56% 0.1351 -0.1853)
OKLCHoklch(62.56% 0.229 306.1)
XYZxyz(35.9885, 21.4097, 86.2238)
Luminance0.2141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54F2 #9BF254
analogous
#5C54F2 #AB54F2 #F254EA
triadic
#AB54F2 #F2AB54 #54F2AB
tetradic
#AB54F2 #F25C54 #9BF254 #54EAF2
square
#AB54F2 #F25C54 #9BF254 #54EAF2
split-complementary
#AB54F2 #EAF254 #54F25C
monochromatic
#6F0EBD #8F1BEE #AB54F2 #C78DF6 #E3C6FB

Accessibility & contrast

On white

3.98
#AB54F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#AB54F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54F2
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54F2#FFFFFF#000000##000000
##AB54F21.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF7
Deuteranopia (green-blind)
#2A80EF
Tritanopia (blue-blind)
#9F769C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ab54f2;
/* rgb */ color: rgb(171, 84, 242);
/* oklch */ color: oklch(62.6% 0.229 306.1);
Tailwind
colors: {
  custom: {
    50: '#c989f7',
    500: '#ab54f2',
    950: '#000000',
  },
}
SCSS
$custom: #ab54f2;
$custom-light: #c989f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54f2",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 242
  },
  "hsl": {
    "h": 273.038,
    "s": 85.87,
    "l": 63.922
  },
  "oklch": {
    "l": 0.6256,
    "c": 0.22934,
    "h": 306.1
  },
  "luminance": 0.21409
}

Semantic roles & 50–950 ramp

primary
#AB54F2
secondary
#CEEDB5
accent
#E20367
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB54F2

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

Preview Lab → · Contrast checker → · Palette generator →

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