#9151B2#9151B2

#9151B2 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.1% C 0.157 H 312.8°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#9151B2
RGBrgb(145, 81, 178)
HSLhsl(280, 39%, 51%)
HSVhsv(280, 54%, 70%)
CMYKcmyk(18.5%, 54.5%, 0%, 30.2%)
CIE-LABlab(45.80, 43.64, -41.13)
CIE-LCHlch(45.80, 59.97, 316.69°)
OKLaboklab(55.11% 0.1066 -0.115)
OKLCHoklch(55.11% 0.157 312.8)
XYZxyz(22.6540, 15.1195, 43.8358)
Luminance0.1512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9151B2 #72B251
analogous
#6051B2 #9151B2 #B251A2
triadic
#9151B2 #B29151 #51B291
tetradic
#9151B2 #B26051 #72B251 #51A2B2
square
#9151B2 #B26051 #72B251 #51A2B2
split-complementary
#9151B2 #A2B251 #51B260
monochromatic
#4D2A5F #6F3D89 #9151B2 #AC7BC5 #C7A6D8

Accessibility & contrast

On white

5.22
#9151B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#9151B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9151B2
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9151B2#FFFFFF#000000##FFFFFF
##9151B21.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3769B5
Deuteranopia (green-blind)
#4D6EB0
Tritanopia (blue-blind)
#8E617A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9151b2;
/* rgb */ color: rgb(145, 81, 178);
/* oklch */ color: oklch(55.1% 0.157 312.8);
Tailwind
colors: {
  custom: {
    50: '#b484c9',
    500: '#9151b2',
    950: '#000000',
  },
}
SCSS
$custom: #9151b2;
$custom-light: #b484c9;
$custom-dark: #000000;
JSON
{
  "hex": "#9151b2",
  "rgb": {
    "r": 145,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 279.588,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.55108,
    "c": 0.15685,
    "h": 312.8
  },
  "luminance": 0.15119
}

Semantic roles & 50–950 ramp

primary
#9151B2
secondary
#A9C59A
accent
#CF5981
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #9151B2

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

Preview Lab → · Contrast checker → · Palette generator →

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