#9157FC#9157FC

#9157FC is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.9% C 0.232 H 294.7°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#9157FC
RGBrgb(145, 87, 252)
HSLhsl(261, 96%, 66%)
HSVhsv(261, 65%, 99%)
CMYKcmyk(42.5%, 65.5%, 0%, 1.2%)
CIE-LABlab(51.68, 58.44, -73.87)
CIE-LCHlch(51.68, 94.19, 308.35°)
OKLaboklab(60.89% 0.0969 -0.2111)
OKLCHoklch(60.89% 0.232 294.7)
XYZxyz(32.6512, 19.8636, 94.1903)
Luminance0.1986 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9157FC #C2FC57
analogous
#5770FC #9157FC #E457FC
triadic
#9157FC #FC9157 #57FC91
tetradic
#9157FC #FC5770 #C2FC57 #57FCE4
square
#9157FC #FC5770 #C2FC57 #57FCE4
split-complementary
#9157FC #FCE457 #70FC57
monochromatic
#4D04D5 #6A1BFB #9157FC #B893FD #E0CFFE

Accessibility & contrast

On white

4.22
#9157FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#9157FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9157FC
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9157FC#FFFFFF#000000##000000
##9157FC1.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFF
Deuteranopia (green-blind)
#0079F9
Tritanopia (blue-blind)
#747EA2
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9157fc;
/* rgb */ color: rgb(145, 87, 252);
/* oklch */ color: oklch(60.9% 0.232 294.7);
Tailwind
colors: {
  custom: {
    50: '#b98afe',
    500: '#9157fc',
    950: '#000000',
  },
}
SCSS
$custom: #9157fc;
$custom-light: #b98afe;
$custom-dark: #000000;
JSON
{
  "hex": "#9157fc",
  "rgb": {
    "r": 145,
    "g": 87,
    "b": 252
  },
  "hsl": {
    "h": 261.091,
    "s": 96.491,
    "l": 66.471
  },
  "oklch": {
    "l": 0.60893,
    "c": 0.23228,
    "h": 294.7
  },
  "luminance": 0.19864
}

Semantic roles & 50–950 ramp

primary
#9157FC
secondary
#DFF2BD
accent
#E60095
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #9157FC

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

Preview Lab → · Contrast checker → · Palette generator →

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