#9151EA#9151EA

#9151EA is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.8% C 0.220 H 298.6°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#9151EA
RGBrgb(145, 81, 234)
HSLhsl(265, 78%, 62%)
HSVhsv(265, 65%, 92%)
CMYKcmyk(38%, 65.4%, 0%, 8.2%)
CIE-LABlab(49.31, 56.91, -67.66)
CIE-LCHlch(49.31, 88.41, 310.07°)
OKLaboklab(58.78% 0.1052 -0.1928)
OKLCHoklch(58.78% 0.22 298.6)
XYZxyz(29.4670, 17.8447, 79.7178)
Luminance0.1784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9151EA #AAEA51
analogous
#515EEA #9151EA #DE51EA
triadic
#9151EA #EA9151 #51EA91
tetradic
#9151EA #EA515E #AAEA51 #51EADE
square
#9151EA #EA515E #AAEA51 #51EADE
split-complementary
#9151EA #EADE51 #5EEA51
monochromatic
#5415AC #6F1BE2 #9151EA #B488F1 #D6BEF7

Accessibility & contrast

On white

4.60
#9151EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#9151EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9151EA
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9151EA#FFFFFF#000000##FFFFFF
##9151EA1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EF
Deuteranopia (green-blind)
#0074E7
Tritanopia (blue-blind)
#7C7497
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9151ea;
/* rgb */ color: rgb(145, 81, 234);
/* oklch */ color: oklch(58.8% 0.220 298.6);
Tailwind
colors: {
  custom: {
    50: '#b786f2',
    500: '#9151ea',
    950: '#000000',
  },
}
SCSS
$custom: #9151ea;
$custom-light: #b786f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9151ea",
  "rgb": {
    "r": 145,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 265.098,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.58782,
    "c": 0.21963,
    "h": 298.6
  },
  "luminance": 0.17845
}

Semantic roles & 50–950 ramp

primary
#9151EA
secondary
#D0E8AF
accent
#DB0B84
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #9151EA

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

Preview Lab → · Contrast checker → · Palette generator →

#9151EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva