#9151CF#9151CF

#9151CF is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.9% C 0.189 H 304.4°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#9151CF
RGBrgb(145, 81, 207)
HSLhsl(270, 57%, 56%)
HSVhsv(270, 61%, 81%)
CMYKcmyk(30%, 60.9%, 0%, 18.8%)
CIE-LABlab(47.51, 50.33, -55.22)
CIE-LCHlch(47.51, 74.72, 312.35°)
OKLaboklab(56.91% 0.1072 -0.1563)
OKLCHoklch(56.91% 0.189 304.4)
XYZxyz(25.8795, 16.4097, 60.8234)
Luminance0.1641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9151CF #8FCF51
analogous
#5251CF #9151CF #CF51CE
triadic
#9151CF #CF9151 #51CF91
tetradic
#9151CF #CF5251 #8FCF51 #51CECF
square
#9151CF #CF5251 #8FCF51 #51CECF
split-complementary
#9151CF #CECF51 #51CF52
monochromatic
#542482 #7231B2 #9151CF #AF81DC #CEB1E9

Accessibility & contrast

On white

4.90
#9151CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#9151CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9151CF
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9151CF#FFFFFF#000000##FFFFFF
##9151CF1.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#066FD3
Deuteranopia (green-blind)
#3371CC
Tritanopia (blue-blind)
#866B88
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9151cf;
/* rgb */ color: rgb(145, 81, 207);
/* oklch */ color: oklch(56.9% 0.189 304.4);
Tailwind
colors: {
  custom: {
    50: '#b585de',
    500: '#9151cf',
    950: '#000000',
  },
}
SCSS
$custom: #9151cf;
$custom-light: #b585de;
$custom-dark: #000000;
JSON
{
  "hex": "#9151cf",
  "rgb": {
    "r": 145,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 270.476,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.5691,
    "c": 0.18948,
    "h": 304.4
  },
  "luminance": 0.1641
}

Semantic roles & 50–950 ramp

primary
#9151CF
secondary
#BDD8A4
accent
#E04893
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9151CF

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

Preview Lab → · Contrast checker → · Palette generator →

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