#AB4BEC#AB4BEC

#AB4BEC is a mid, highly saturated violet. Relative luminance 0.197; OKLCH L 61.1% C 0.234 H 308.2°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AB4BEC
RGBrgb(171, 75, 236)
HSLhsl(276, 81%, 61%)
HSVhsv(276, 68%, 93%)
CMYKcmyk(27.5%, 68.2%, 0%, 7.5%)
CIE-LABlab(51.55, 65.33, -65.01)
CIE-LCHlch(51.55, 92.16, 315.14°)
OKLaboklab(61.11% 0.1452 -0.1841)
OKLCHoklch(61.11% 0.234 308.2)
XYZxyz(34.4479, 19.7467, 81.3374)
Luminance0.1975 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4BEC #8CEC4B
analogous
#5A4BEC #AB4BEC #EC4BDD
triadic
#AB4BEC #ECAB4B #4BECAB
tetradic
#AB4BEC #EC5A4B #8CEC4B #4BDDEC
square
#AB4BEC #EC5A4B #8CEC4B #4BDDEC
split-complementary
#AB4BEC #DDEC4B #4BEC5A
monochromatic
#6D12AB #9018E2 #AB4BEC #C582F2 #DFBAF8

Accessibility & contrast

On white

4.24
#AB4BEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#AB4BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4BEC
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4BEC#FFFFFF#000000##000000
##AB4BEC1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077F1
Deuteranopia (green-blind)
#257CE9
Tritanopia (blue-blind)
#A16E96
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab4bec;
/* rgb */ color: rgb(171, 75, 236);
/* oklch */ color: oklch(61.1% 0.234 308.2);
Tailwind
colors: {
  custom: {
    50: '#c984f3',
    500: '#ab4bec',
    950: '#000000',
  },
}
SCSS
$custom: #ab4bec;
$custom-light: #c984f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4bec",
  "rgb": {
    "r": 171,
    "g": 75,
    "b": 236
  },
  "hsl": {
    "h": 275.776,
    "s": 80.905,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61113,
    "c": 0.23448,
    "h": 308.2
  },
  "luminance": 0.19746
}

Semantic roles & 50–950 ramp

primary
#AB4BEC
secondary
#C4E8AB
accent
#DD085E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B17
muted
#827C85

Preview Lab

Preview with #AB4BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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