#9157CA#9157CA

#9157CA is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.5% C 0.175 H 304.8°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#9157CA
RGBrgb(145, 87, 202)
HSLhsl(270, 52%, 57%)
HSVhsv(270, 57%, 79%)
CMYKcmyk(28.2%, 56.9%, 0%, 20.8%)
CIE-LABlab(48.39, 45.98, -50.94)
CIE-LCHlch(48.39, 68.62, 312.07°)
OKLaboklab(57.45% 0.0998 -0.1437)
OKLCHoklch(57.45% 0.175 304.8)
XYZxyz(25.7436, 17.1005, 57.8102)
Luminance0.1710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9157CA #90CA57
analogous
#5857CA #9157CA #CA57C9
triadic
#9157CA #CA9157 #57CA91
tetradic
#9157CA #CA5857 #90CA57 #57C9CA
square
#9157CA #CA5857 #90CA57 #57C9CA
split-complementary
#9157CA #C9CA57 #57CA58
monochromatic
#54287F #7237AD #9157CA #AF86D9 #CEB4E7

Accessibility & contrast

On white

4.75
#9157CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#9157CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9157CA
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9157CA#FFFFFF#000000##FFFFFF
##9157CA1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2971CE
Deuteranopia (green-blind)
#4073C7
Tritanopia (blue-blind)
#876D88
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9157ca;
/* rgb */ color: rgb(145, 87, 202);
/* oklch */ color: oklch(57.5% 0.175 304.8);
Tailwind
colors: {
  custom: {
    50: '#b489db',
    500: '#9157ca',
    950: '#000000',
  },
}
SCSS
$custom: #9157ca;
$custom-light: #b489db;
$custom-dark: #000000;
JSON
{
  "hex": "#9157ca",
  "rgb": {
    "r": 145,
    "g": 87,
    "b": 202
  },
  "hsl": {
    "h": 270.261,
    "s": 52.036,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57453,
    "c": 0.17496,
    "h": 304.8
  },
  "luminance": 0.171
}

Semantic roles & 50–950 ramp

primary
#9157CA
secondary
#BED6A7
accent
#DB4C93
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #9157CA

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

Preview Lab → · Contrast checker → · Palette generator →

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