#AB45B7#AB45B7

#AB45B7 is a mid, vivid purple. Relative luminance 0.163; OKLCH L 57.1% C 0.192 H 323.4°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AB45B7
RGBrgb(171, 69, 183)
HSLhsl(294, 45%, 49%)
HSVhsv(294, 62%, 72%)
CMYKcmyk(6.6%, 62.3%, 0%, 28.2%)
CIE-LABlab(47.41, 57.26, -41.28)
CIE-LCHlch(47.41, 70.59, 324.21°)
OKLaboklab(57.11% 0.1541 -0.1147)
OKLCHoklch(57.11% 0.192 323.4)
XYZxyz(27.4691, 16.3346, 46.4966)
Luminance0.1633 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45B7 #51B745
analogous
#7245B7 #AB45B7 #B7458A
triadic
#AB45B7 #B7AB45 #45B7AB
tetradic
#AB45B7 #B77245 #51B745 #458AB7
square
#AB45B7 #B77245 #51B745 #458AB7
split-complementary
#AB45B7 #8AB745 #45B772
monochromatic
#58235E #81348B #AB45B7 #C070C9 #D39DDA

Accessibility & contrast

On white

4.92
#AB45B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#AB45B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB45B7
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45B7#FFFFFF#000000##FFFFFF
##AB45B71.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E69BA
Deuteranopia (green-blind)
#5675B4
Tritanopia (blue-blind)
#AE5678
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab45b7;
/* rgb */ color: rgb(171, 69, 183);
/* oklch */ color: oklch(57.1% 0.192 323.4);
Tailwind
colors: {
  custom: {
    50: '#c77fcd',
    500: '#ab45b7',
    950: '#000000',
  },
}
SCSS
$custom: #ab45b7;
$custom-light: #c77fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45b7",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 183
  },
  "hsl": {
    "h": 293.684,
    "s": 45.238,
    "l": 49.412
  },
  "oklch": {
    "l": 0.57111,
    "c": 0.19212,
    "h": 323.4
  },
  "luminance": 0.16333
}

Semantic roles & 50–950 ramp

primary
#AB45B7
secondary
#97C692
accent
#D55361
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#130B13
muted
#827C82

Preview Lab

Preview with #AB45B7

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

Preview Lab → · Contrast checker → · Palette generator →

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