#9157FF#9157FF

#9157FF is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 61.1% C 0.236 H 294.2°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#9157FF
RGBrgb(145, 87, 255)
HSLhsl(261, 100%, 67%)
HSVhsv(261, 66%, 100%)
CMYKcmyk(43.1%, 65.9%, 0%, 0%)
CIE-LABlab(51.90, 59.21, -75.18)
CIE-LCHlch(51.90, 95.70, 308.22°)
OKLaboklab(61.12% 0.0965 -0.215)
OKLCHoklch(61.12% 0.236 294.2)
XYZxyz(33.1304, 20.0552, 96.7138)
Luminance0.2006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9157FF #C5FF57
analogous
#5771FF #9157FF #E557FF
triadic
#9157FF #FF9157 #57FF91
tetradic
#9157FF #FF5771 #C5FF57 #57FFE5
square
#9157FF #FF5771 #C5FF57 #57FFE5
split-complementary
#9157FF #FFE557 #71FF57
monochromatic
#4C00DC #691AFF #9157FF #B994FF #E1D1FF

Accessibility & contrast

On white

4.19
#9157FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#9157FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9157FF
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9157FF#FFFFFF#000000##000000
##9157FF1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFF
Deuteranopia (green-blind)
#0079FC
Tritanopia (blue-blind)
#7280A4
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9157ff;
/* rgb */ color: rgb(145, 87, 255);
/* oklch */ color: oklch(61.1% 0.236 294.2);
Tailwind
colors: {
  custom: {
    50: '#b98aff',
    500: '#9157ff',
    950: '#000000',
  },
}
SCSS
$custom: #9157ff;
$custom-light: #b98aff;
$custom-dark: #000000;
JSON
{
  "hex": "#9157ff",
  "rgb": {
    "r": 145,
    "g": 87,
    "b": 255
  },
  "hsl": {
    "h": 260.714,
    "s": 100,
    "l": 67.059
  },
  "oklch": {
    "l": 0.61117,
    "c": 0.23564,
    "h": 294.2
  },
  "luminance": 0.20056
}

Semantic roles & 50–950 ramp

primary
#9157FF
secondary
#E1F4BE
accent
#E60096
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #9157FF

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

Preview Lab → · Contrast checker → · Palette generator →

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