#AB4ED7#AB4ED7

#AB4ED7 is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.1% C 0.210 H 313.1°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#AB4ED7
RGBrgb(171, 78, 215)
HSLhsl(281, 63%, 57%)
HSVhsv(281, 64%, 84%)
CMYKcmyk(20.5%, 63.7%, 0%, 15.7%)
CIE-LABlab(50.70, 59.53, -54.49)
CIE-LCHlch(50.70, 80.70, 317.53°)
OKLaboklab(60.08% 0.1435 -0.1533)
OKLCHoklch(60.08% 0.21 313.1)
XYZxyz(31.7826, 19.0139, 66.2726)
Luminance0.1901 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4ED7 #7AD74E
analogous
#664ED7 #AB4ED7 #D74EBF
triadic
#AB4ED7 #D7AB4E #4ED7AB
tetradic
#AB4ED7 #D7664E #7AD74E #4EBFD7
square
#AB4ED7 #D7664E #7AD74E #4EBFD7
split-complementary
#AB4ED7 #BFD74E #4ED766
monochromatic
#691F8B #8E2BBD #AB4ED7 #C380E2 #DAB2EE

Accessibility & contrast

On white

4.37
#AB4ED7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#AB4ED7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4ED7
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4ED7#FFFFFF#000000##000000
##AB4ED71.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0A74DB
Deuteranopia (green-blind)
#457BD4
Tritanopia (blue-blind)
#A7688C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ab4ed7;
/* rgb */ color: rgb(171, 78, 215);
/* oklch */ color: oklch(60.1% 0.210 313.1);
Tailwind
colors: {
  custom: {
    50: '#c885e4',
    500: '#ab4ed7',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ed7;
$custom-light: #c885e4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ed7",
  "rgb": {
    "r": 171,
    "g": 78,
    "b": 215
  },
  "hsl": {
    "h": 280.73,
    "s": 63.134,
    "l": 57.451
  },
  "oklch": {
    "l": 0.60082,
    "c": 0.20999,
    "h": 313.1
  },
  "luminance": 0.19013
}

Semantic roles & 50–950 ramp

primary
#AB4ED7
secondary
#B7DCA5
accent
#E64276
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #AB4ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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