#9151E2#9151E2

#9151E2 is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 58.2% C 0.211 H 300.2°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#9151E2
RGBrgb(145, 81, 226)
HSLhsl(266, 71%, 60%)
HSVhsv(266, 64%, 89%)
CMYKcmyk(35.8%, 64.2%, 0%, 11.4%)
CIE-LABlab(48.75, 54.93, -64.04)
CIE-LCHlch(48.75, 84.37, 310.62°)
OKLaboklab(58.21% 0.106 -0.1822)
OKLCHoklch(58.21% 0.211 300.2)
XYZxyz(28.3436, 17.3954, 73.8011)
Luminance0.1740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9151E2 #A2E251
analogous
#5159E2 #9151E2 #DA51E2
triadic
#9151E2 #E29151 #51E291
tetradic
#9151E2 #E25159 #A2E251 #51E2DA
square
#9151E2 #E25159 #A2E251 #51E2DA
split-complementary
#9151E2 #E2DA51 #59E251
monochromatic
#551A9E #7123D3 #9151E2 #B285EB #D3BAF3

Accessibility & contrast

On white

4.69
#9151E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#9151E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9151E2
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9151E2#FFFFFF#000000##FFFFFF
##9151E21.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E6
Deuteranopia (green-blind)
#0573DF
Tritanopia (blue-blind)
#7F7192
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9151e2;
/* rgb */ color: rgb(145, 81, 226);
/* oklch */ color: oklch(58.2% 0.211 300.2);
Tailwind
colors: {
  custom: {
    50: '#b785ec',
    500: '#9151e2',
    950: '#000000',
  },
}
SCSS
$custom: #9151e2;
$custom-light: #b785ec;
$custom-dark: #000000;
JSON
{
  "hex": "#9151e2",
  "rgb": {
    "r": 145,
    "g": 81,
    "b": 226
  },
  "hsl": {
    "h": 266.483,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.5821,
    "c": 0.21076,
    "h": 300.2
  },
  "luminance": 0.17396
}

Semantic roles & 50–950 ramp

primary
#9151E2
secondary
#CBE3AC
accent
#D3127E
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9151E2

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

Preview Lab → · Contrast checker → · Palette generator →

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