#AB4FEB#AB4FEB

#AB4FEB is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.5% C 0.229 H 308.1°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#AB4FEB
RGBrgb(171, 79, 235)
HSLhsl(275, 80%, 62%)
HSVhsv(275, 66%, 92%)
CMYKcmyk(27.2%, 66.4%, 0%, 7.8%)
CIE-LABlab(52.12, 63.34, -63.53)
CIE-LCHlch(52.12, 89.71, 314.92°)
OKLaboklab(61.5% 0.1411 -0.1798)
OKLCHoklch(61.5% 0.229 308.1)
XYZxyz(34.5829, 20.2486, 80.6677)
Luminance0.2025 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4FEB #8FEB4F
analogous
#5D4FEB #AB4FEB #EB4FDD
triadic
#AB4FEB #EBAB4F #4FEBAB
tetradic
#AB4FEB #EB5D4F #8FEB4F #4FDDEB
square
#AB4FEB #EB5D4F #8FEB4F #4FDDEB
split-complementary
#AB4FEB #DDEB4F #4FEB5D
monochromatic
#6D14AC #901AE3 #AB4FEB #C586F1 #DFBDF7

Accessibility & contrast

On white

4.16
#AB4FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#AB4FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4FEB
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4FEB#FFFFFF#000000##000000
##AB4FEB1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F0
Deuteranopia (green-blind)
#2E7DE8
Tritanopia (blue-blind)
#A17097
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab4feb;
/* rgb */ color: rgb(171, 79, 235);
/* oklch */ color: oklch(61.5% 0.229 308.1);
Tailwind
colors: {
  custom: {
    50: '#c986f2',
    500: '#ab4feb',
    950: '#000000',
  },
}
SCSS
$custom: #ab4feb;
$custom-light: #c986f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4feb",
  "rgb": {
    "r": 171,
    "g": 79,
    "b": 235
  },
  "hsl": {
    "h": 275.385,
    "s": 79.592,
    "l": 61.569
  },
  "oklch": {
    "l": 0.61498,
    "c": 0.22857,
    "h": 308.1
  },
  "luminance": 0.20248
}

Semantic roles & 50–950 ramp

primary
#AB4FEB
secondary
#C6E8AE
accent
#DC0A60
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB4FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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