#9157C7#9157C7

#9157C7 is a mid, vivid violet. Relative luminance 0.170; OKLCH L 57.3% C 0.171 H 305.6°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#9157C7
RGBrgb(145, 87, 199)
HSLhsl(271, 50%, 56%)
HSVhsv(271, 56%, 78%)
CMYKcmyk(27.1%, 56.3%, 0%, 22%)
CIE-LABlab(48.21, 45.26, -49.49)
CIE-LCHlch(48.21, 67.07, 312.44°)
OKLaboklab(57.27% 0.0997 -0.1395)
OKLCHoklch(57.27% 0.171 305.6)
XYZxyz(25.3919, 16.9598, 55.9577)
Luminance0.1696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9157C7 #8DC757
analogous
#5957C7 #9157C7 #C757C5
triadic
#9157C7 #C79157 #57C791
tetradic
#9157C7 #C75957 #8DC757 #57C5C7
square
#9157C7 #C75957 #8DC757 #57C5C7
split-complementary
#9157C7 #C5C757 #57C759
monochromatic
#53297B #7238A9 #9157C7 #AF85D6 #CDB3E6

Accessibility & contrast

On white

4.78
#9157C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#9157C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9157C7
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9157C7#FFFFFF#000000##FFFFFF
##9157C71.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D71CB
Deuteranopia (green-blind)
#4373C4
Tritanopia (blue-blind)
#886C87
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9157c7;
/* rgb */ color: rgb(145, 87, 199);
/* oklch */ color: oklch(57.3% 0.171 305.6);
Tailwind
colors: {
  custom: {
    50: '#b489d8',
    500: '#9157c7',
    950: '#000000',
  },
}
SCSS
$custom: #9157c7;
$custom-light: #b489d8;
$custom-dark: #000000;
JSON
{
  "hex": "#9157c7",
  "rgb": {
    "r": 145,
    "g": 87,
    "b": 199
  },
  "hsl": {
    "h": 271.071,
    "s": 50,
    "l": 56.078
  },
  "oklch": {
    "l": 0.57266,
    "c": 0.17146,
    "h": 305.6
  },
  "luminance": 0.1696
}

Semantic roles & 50–950 ramp

primary
#9157C7
secondary
#BCD4A6
accent
#DA4E91
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C15
muted
#807D83

Preview Lab

Preview with #9157C7

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

Preview Lab → · Contrast checker → · Palette generator →

#9157C7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva