#917CEB#917CEB

#917CEB is a light, vivid violet. Relative luminance 0.264; OKLCH L 65.5% C 0.161 H 289.9°. Best body text is #000000 at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#917CEB
RGBrgb(145, 124, 235)
HSLhsl(251, 74%, 70%)
HSVhsv(251, 47%, 92%)
CMYKcmyk(38.3%, 47.2%, 0%, 7.8%)
CIE-LABlab(58.45, 33.62, -53.53)
CIE-LCHlch(58.45, 63.22, 302.13°)
OKLaboklab(65.53% 0.0548 -0.1513)
OKLCHoklch(65.53% 0.161 289.9)
XYZxyz(33.8760, 26.4322, 81.8982)
Luminance0.2643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#917CEB #D6EB7C
analogous
#7C9FEB #917CEB #C87CEB
triadic
#917CEB #EB917C #7CEB91
tetradic
#917CEB #EB7C9F #D6EB7C #7CEBC8
square
#917CEB #EB7C9F #D6EB7C #7CEBC8
split-complementary
#917CEB #EBC87C #9FEB7C
monochromatic
#401FCD #6447E3 #917CEB #BEB1F3 #E9E4FB

Accessibility & contrast

On white

3.34
#917CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.29
#917CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #917CEB
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##917CEB#FFFFFF#000000##000000
##917CEB1.003.346.296.29
#FFFFFF3.341.0021.0021.00
#0000006.2921.001.001.00
##0000006.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#528FEF
Deuteranopia (green-blind)
#548AE8
Tritanopia (blue-blind)
#7992A8
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #917ceb;
/* rgb */ color: rgb(145, 124, 235);
/* oklch */ color: oklch(65.5% 0.161 289.9);
Tailwind
colors: {
  custom: {
    50: '#b5a2f2',
    500: '#917ceb',
    950: '#000000',
  },
}
SCSS
$custom: #917ceb;
$custom-light: #b5a2f2;
$custom-dark: #000000;
JSON
{
  "hex": "#917ceb",
  "rgb": {
    "r": 145,
    "g": 124,
    "b": 235
  },
  "hsl": {
    "h": 251.351,
    "s": 73.51,
    "l": 70.392
  },
  "oklch": {
    "l": 0.6553,
    "c": 0.16096,
    "h": 289.9
  },
  "luminance": 0.26433
}

Semantic roles & 50–950 ramp

primary
#917CEB
secondary
#EBF1D2
accent
#D610B0
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#110F17
muted
#807F85

Preview Lab

Preview with #917CEB

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

Preview Lab → · Contrast checker → · Palette generator →

#917CEB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva