#9151CB#9151CB

#9151CB is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.6% C 0.185 H 305.4°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#9151CB
RGBrgb(145, 81, 203)
HSLhsl(271, 54%, 56%)
HSVhsv(271, 60%, 80%)
CMYKcmyk(28.6%, 60.1%, 0%, 20.4%)
CIE-LABlab(47.26, 49.38, -53.32)
CIE-LCHlch(47.26, 72.68, 312.80°)
OKLaboklab(56.65% 0.1073 -0.1507)
OKLCHoklch(56.65% 0.185 305.4)
XYZxyz(25.3966, 16.2166, 58.2805)
Luminance0.1622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9151CB #8BCB51
analogous
#5451CB #9151CB #CB51C8
triadic
#9151CB #CB9151 #51CB91
tetradic
#9151CB #CB5451 #8BCB51 #51C8CB
square
#9151CB #CB5451 #8BCB51 #51C8CB
split-complementary
#9151CB #C8CB51 #51CB54
monochromatic
#53257C #7233AC #9151CB #AF80D9 #CDAFE7

Accessibility & contrast

On white

4.95
#9151CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#9151CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9151CB
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9151CB#FFFFFF#000000##FFFFFF
##9151CB1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#156ECF
Deuteranopia (green-blind)
#3770C8
Tritanopia (blue-blind)
#876986
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9151cb;
/* rgb */ color: rgb(145, 81, 203);
/* oklch */ color: oklch(56.6% 0.185 305.4);
Tailwind
colors: {
  custom: {
    50: '#b585db',
    500: '#9151cb',
    950: '#000000',
  },
}
SCSS
$custom: #9151cb;
$custom-light: #b585db;
$custom-dark: #000000;
JSON
{
  "hex": "#9151cb",
  "rgb": {
    "r": 145,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 271.475,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56648,
    "c": 0.18497,
    "h": 305.4
  },
  "luminance": 0.16216
}

Semantic roles & 50–950 ramp

primary
#9151CB
secondary
#BBD5A3
accent
#DD4A90
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #9151CB

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

Preview Lab → · Contrast checker → · Palette generator →

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