#AB74EB#AB74EB

#AB74EB is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.6% C 0.176 H 303.3°. Best body text is #000000 at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#AB74EB
RGBrgb(171, 116, 235)
HSLhsl(268, 75%, 69%)
HSVhsv(268, 51%, 92%)
CMYKcmyk(27.2%, 50.6%, 0%, 7.8%)
CIE-LABlab(59.11, 44.70, -52.33)
CIE-LCHlch(59.11, 68.82, 310.50°)
OKLaboklab(66.61% 0.0966 -0.1471)
OKLCHoklch(66.61% 0.176 303.3)
XYZxyz(38.0321, 27.1469, 81.8174)
Luminance0.2715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB74EB #B4EB74
analogous
#7479EB #AB74EB #E774EB
triadic
#AB74EB #EBAB74 #74EBAB
tetradic
#AB74EB #EB7479 #B4EB74 #74EBE7
square
#AB74EB #EB7479 #B4EB74 #74EBE7
split-complementary
#AB74EB #EBE774 #79EB74
monochromatic
#6C1DC8 #8B3EE3 #AB74EB #CBAAF3 #ECDFFA

Accessibility & contrast

On white

3.27
#AB74EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.43
#AB74EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB74EB
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB74EB#FFFFFF#000000##000000
##AB74EB1.003.276.436.43
#FFFFFF3.271.0021.0021.00
#0000006.4321.001.001.00
##0000006.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8DEF
Deuteranopia (green-blind)
#5D8EE8
Tritanopia (blue-blind)
#A08AA5
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ab74eb;
/* rgb */ color: rgb(171, 116, 235);
/* oklch */ color: oklch(66.6% 0.176 303.3);
Tailwind
colors: {
  custom: {
    50: '#c79df2',
    500: '#ab74eb',
    950: '#000000',
  },
}
SCSS
$custom: #ab74eb;
$custom-light: #c79df2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab74eb",
  "rgb": {
    "r": 171,
    "g": 116,
    "b": 235
  },
  "hsl": {
    "h": 267.731,
    "s": 74.843,
    "l": 68.824
  },
  "oklch": {
    "l": 0.66605,
    "c": 0.17602,
    "h": 303.3
  },
  "luminance": 0.27147
}

Semantic roles & 50–950 ramp

primary
#AB74EB
secondary
#DFEFCC
accent
#D70F7A
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #AB74EB

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

Preview Lab → · Contrast checker → · Palette generator →

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