#AB46ED#AB46ED

#AB46ED is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 60.6% C 0.241 H 308.4°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#AB46ED
RGBrgb(171, 70, 237)
HSLhsl(276, 82%, 60%)
HSVhsv(276, 70%, 93%)
CMYKcmyk(27.8%, 70.5%, 0%, 7.1%)
CIE-LABlab(50.87, 67.65, -66.67)
CIE-LCHlch(50.87, 94.98, 315.42°)
OKLaboklab(60.65% 0.15 -0.189)
OKLCHoklch(60.65% 0.241 308.4)
XYZxyz(34.2677, 19.1532, 81.9961)
Luminance0.1915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB46ED #88ED46
analogous
#5746ED #AB46ED #ED46DC
triadic
#AB46ED #EDAB46 #46EDAB
tetradic
#AB46ED #ED5746 #88ED46 #46DCED
square
#AB46ED #ED5746 #88ED46 #46DCED
split-complementary
#AB46ED #DCED46 #46ED57
monochromatic
#6C10A8 #9016E0 #AB46ED #C47EF2 #DEB6F8

Accessibility & contrast

On white

4.35
#AB46ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#AB46ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB46ED
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB46ED#FFFFFF#000000##000000
##AB46ED1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075F2
Deuteranopia (green-blind)
#187AE9
Tritanopia (blue-blind)
#A16C95
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ab46ed;
/* rgb */ color: rgb(171, 70, 237);
/* oklch */ color: oklch(60.6% 0.241 308.4);
Tailwind
colors: {
  custom: {
    50: '#c982f4',
    500: '#ab46ed',
    950: '#000000',
  },
}
SCSS
$custom: #ab46ed;
$custom-light: #c982f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab46ed",
  "rgb": {
    "r": 171,
    "g": 70,
    "b": 237
  },
  "hsl": {
    "h": 276.287,
    "s": 82.266,
    "l": 60.196
  },
  "oklch": {
    "l": 0.60647,
    "c": 0.2413,
    "h": 308.4
  },
  "luminance": 0.19153
}

Semantic roles & 50–950 ramp

primary
#AB46ED
secondary
#C1E7A7
accent
#DF075C
background
#FCF8FF
surface
#F9EFFE
border
#D2CAD6
text
#140B17
muted
#827C85

Preview Lab

Preview with #AB46ED

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

Preview Lab → · Contrast checker → · Palette generator →

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