#9151CD#9151CD

#9151CD is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.8% C 0.187 H 304.9°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#9151CD
RGBrgb(145, 81, 205)
HSLhsl(271, 55%, 56%)
HSVhsv(271, 60%, 80%)
CMYKcmyk(29.3%, 60.5%, 0%, 19.6%)
CIE-LABlab(47.38, 49.86, -54.27)
CIE-LCHlch(47.38, 73.70, 312.57°)
OKLaboklab(56.78% 0.1072 -0.1535)
OKLCHoklch(56.78% 0.187 304.9)
XYZxyz(25.6365, 16.3125, 59.5438)
Luminance0.1631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9151CD #8DCD51
analogous
#5351CD #9151CD #CD51CB
triadic
#9151CD #CD9151 #51CD91
tetradic
#9151CD #CD5351 #8DCD51 #51CBCD
square
#9151CD #CD5351 #8DCD51 #51CBCD
split-complementary
#9151CD #CBCD51 #51CD53
monochromatic
#53257F #7232AF #9151CD #AF81DB #CDB0E8

Accessibility & contrast

On white

4.93
#9151CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#9151CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9151CD
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9151CD#FFFFFF#000000##FFFFFF
##9151CD1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F6FD1
Deuteranopia (green-blind)
#3571CA
Tritanopia (blue-blind)
#866A87
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9151cd;
/* rgb */ color: rgb(145, 81, 205);
/* oklch */ color: oklch(56.8% 0.187 304.9);
Tailwind
colors: {
  custom: {
    50: '#b585dd',
    500: '#9151cd',
    950: '#000000',
  },
}
SCSS
$custom: #9151cd;
$custom-light: #b585dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9151cd",
  "rgb": {
    "r": 145,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 270.968,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56778,
    "c": 0.18723,
    "h": 304.9
  },
  "luminance": 0.16312
}

Semantic roles & 50–950 ramp

primary
#9151CD
secondary
#BCD7A3
accent
#DF4991
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9151CD

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

Preview Lab → · Contrast checker → · Palette generator →

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