#9157CD#9157CD

#9157CD is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.6% C 0.178 H 304.0°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#9157CD
RGBrgb(145, 87, 205)
HSLhsl(269, 54%, 57%)
HSVhsv(269, 58%, 80%)
CMYKcmyk(29.3%, 57.6%, 0%, 19.6%)
CIE-LABlab(48.57, 46.70, -52.37)
CIE-LCHlch(48.57, 70.17, 311.72°)
OKLaboklab(57.64% 0.0998 -0.1479)
OKLCHoklch(57.64% 0.178 304)
XYZxyz(26.1022, 17.2440, 59.6991)
Luminance0.1724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9157CD #93CD57
analogous
#5758CD #9157CD #CC57CD
triadic
#9157CD #CD9157 #57CD91
tetradic
#9157CD #CD5758 #93CD57 #57CDCC
square
#9157CD #CD5758 #93CD57 #57CDCC
split-complementary
#9157CD #CDCC57 #58CD57
monochromatic
#542783 #7235B2 #9157CD #B086DB #CFB5E9

Accessibility & contrast

On white

4.72
#9157CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#9157CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9157CD
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9157CD#FFFFFF#000000##FFFFFF
##9157CD1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2572D1
Deuteranopia (green-blind)
#3D73CA
Tritanopia (blue-blind)
#866E8A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9157cd;
/* rgb */ color: rgb(145, 87, 205);
/* oklch */ color: oklch(57.6% 0.178 304.0);
Tailwind
colors: {
  custom: {
    50: '#b589dd',
    500: '#9157cd',
    950: '#000000',
  },
}
SCSS
$custom: #9157cd;
$custom-light: #b589dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9157cd",
  "rgb": {
    "r": 145,
    "g": 87,
    "b": 205
  },
  "hsl": {
    "h": 269.492,
    "s": 54.128,
    "l": 57.255
  },
  "oklch": {
    "l": 0.57643,
    "c": 0.17846,
    "h": 304
  },
  "luminance": 0.17244
}

Semantic roles & 50–950 ramp

primary
#9157CD
secondary
#C0D8A8
accent
#DD4A95
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #9157CD

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

Preview Lab → · Contrast checker → · Palette generator →

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