#9157DF#9157DF

#9157DF is a mid, vivid violet. Relative luminance 0.182; OKLCH L 58.8% C 0.199 H 299.9°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#9157DF
RGBrgb(145, 87, 223)
HSLhsl(266, 68%, 61%)
HSVhsv(266, 61%, 87%)
CMYKcmyk(35%, 61%, 0%, 12.5%)
CIE-LABlab(49.69, 51.11, -60.82)
CIE-LCHlch(49.69, 79.45, 310.04°)
OKLaboklab(58.83% 0.0995 -0.1727)
OKLCHoklch(58.83% 0.199 299.9)
XYZxyz(28.4013, 18.1636, 71.8074)
Luminance0.1816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9157DF #A5DF57
analogous
#5761DF #9157DF #D557DF
triadic
#9157DF #DF9157 #57DF91
tetradic
#9157DF #DF5761 #A5DF57 #57DFD5
square
#9157DF #DF5761 #A5DF57 #57DFD5
split-complementary
#9157DF #DFD557 #61DF57
monochromatic
#541E9E #7028D1 #9157DF #B38AE9 #D4BEF3

Accessibility & contrast

On white

4.53
#9157DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#9157DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9157DF
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9157DF#FFFFFF#000000##000000
##9157DF1.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E3
Deuteranopia (green-blind)
#2475DC
Tritanopia (blue-blind)
#807493
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #9157df;
/* rgb */ color: rgb(145, 87, 223);
/* oklch */ color: oklch(58.8% 0.199 299.9);
Tailwind
colors: {
  custom: {
    50: '#b689ea',
    500: '#9157df',
    950: '#000000',
  },
}
SCSS
$custom: #9157df;
$custom-light: #b689ea;
$custom-dark: #000000;
JSON
{
  "hex": "#9157df",
  "rgb": {
    "r": 145,
    "g": 87,
    "b": 223
  },
  "hsl": {
    "h": 265.588,
    "s": 68,
    "l": 60.784
  },
  "oklch": {
    "l": 0.58826,
    "c": 0.19932,
    "h": 299.9
  },
  "luminance": 0.18164
}

Semantic roles & 50–950 ramp

primary
#9157DF
secondary
#CDE3AF
accent
#D01680
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9157DF

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

Preview Lab → · Contrast checker → · Palette generator →

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