#AB28FF#AB28FF

#AB28FF is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 59.6% C 0.284 H 306.4°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#AB28FF
RGBrgb(171, 40, 255)
HSLhsl(277, 100%, 58%)
HSVhsv(277, 84%, 100%)
CMYKcmyk(32.9%, 84.3%, 0%, 0%)
CIE-LABlab(48.76, 81.30, -80.18)
CIE-LCHlch(48.76, 114.19, 315.40°)
OKLaboklab(59.58% 0.1685 -0.2285)
OKLCHoklch(59.58% 0.284 306.4)
XYZxyz(35.5994, 17.3959, 96.0707)
Luminance0.1740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB28FF #7CFF28
analogous
#3F28FF #AB28FF #FF28E8
triadic
#AB28FF #FFAB28 #28FFAB
tetradic
#AB28FF #FF3F28 #7CFF28 #28E8FF
square
#AB28FF #FF3F28 #7CFF28 #28E8FF
split-complementary
#AB28FF #E8FF28 #28FF3F
monochromatic
#6900AD #8E00EA #AB28FF #C365FF #DBA2FF

Accessibility & contrast

On white

4.69
#AB28FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#AB28FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB28FF
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB28FF#FFFFFF#000000##FFFFFF
##AB28FF1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070FF
Deuteranopia (green-blind)
#0074FB
Tritanopia (blue-blind)
#9C6799
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab28ff;
/* rgb */ color: rgb(171, 40, 255);
/* oklch */ color: oklch(59.6% 0.284 306.4);
Tailwind
colors: {
  custom: {
    50: '#cb76ff',
    500: '#ab28ff',
    950: '#000000',
  },
}
SCSS
$custom: #ab28ff;
$custom-light: #cb76ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ab28ff",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 255
  },
  "hsl": {
    "h": 276.558,
    "s": 100,
    "l": 57.843
  },
  "oklch": {
    "l": 0.59583,
    "c": 0.28394,
    "h": 306.4
  },
  "luminance": 0.17396
}

Semantic roles & 50–950 ramp

primary
#AB28FF
secondary
#B8ED96
accent
#FF297C
background
#FDF7FF
surface
#FAEEFF
border
#D3C9D7
text
#140A18
muted
#837C86

Preview Lab

Preview with #AB28FF

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

Preview Lab → · Contrast checker → · Palette generator →

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