#9151CC#9151CC

#9151CC is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.7% C 0.186 H 305.2°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#9151CC
RGBrgb(145, 81, 204)
HSLhsl(271, 55%, 56%)
HSVhsv(271, 60%, 80%)
CMYKcmyk(28.9%, 60.3%, 0%, 20%)
CIE-LABlab(47.32, 49.62, -53.80)
CIE-LCHlch(47.32, 73.19, 312.69°)
OKLaboklab(56.71% 0.1073 -0.1521)
OKLCHoklch(56.71% 0.186 305.2)
XYZxyz(25.5162, 16.2644, 58.9101)
Luminance0.1626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9151CC #8CCC51
analogous
#5351CC #9151CC #CC51C9
triadic
#9151CC #CC9151 #51CC91
tetradic
#9151CC #CC5351 #8CCC51 #51C9CC
square
#9151CC #CC5351 #8CCC51 #51C9CC
split-complementary
#9151CC #C9CC51 #51CC53
monochromatic
#53257E #7233AD #9151CC #AF80DA #CDB0E8

Accessibility & contrast

On white

4.94
#9151CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#9151CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9151CC
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9151CC#FFFFFF#000000##FFFFFF
##9151CC1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#126ED0
Deuteranopia (green-blind)
#3670C9
Tritanopia (blue-blind)
#876A87
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9151cc;
/* rgb */ color: rgb(145, 81, 204);
/* oklch */ color: oklch(56.7% 0.186 305.2);
Tailwind
colors: {
  custom: {
    50: '#b585dc',
    500: '#9151cc',
    950: '#000000',
  },
}
SCSS
$custom: #9151cc;
$custom-light: #b585dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9151cc",
  "rgb": {
    "r": 145,
    "g": 81,
    "b": 204
  },
  "hsl": {
    "h": 271.22,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.56713,
    "c": 0.1861,
    "h": 305.2
  },
  "luminance": 0.16264
}

Semantic roles & 50–950 ramp

primary
#9151CC
secondary
#BBD6A3
accent
#DE4A91
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9151CC

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

Preview Lab → · Contrast checker → · Palette generator →

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