#9157DE#9157DE

#9157DE is a mid, vivid violet. Relative luminance 0.181; OKLCH L 58.8% C 0.198 H 300.1°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#9157DE
RGBrgb(145, 87, 222)
HSLhsl(266, 67%, 61%)
HSVhsv(266, 61%, 87%)
CMYKcmyk(34.7%, 60.8%, 0%, 12.9%)
CIE-LABlab(49.63, 50.86, -60.36)
CIE-LCHlch(49.63, 78.93, 310.12°)
OKLaboklab(58.76% 0.0995 -0.1714)
OKLCHoklch(58.76% 0.198 300.1)
XYZxyz(28.2669, 18.1098, 71.0994)
Luminance0.1811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9157DE #A4DE57
analogous
#5760DE #9157DE #D557DE
triadic
#9157DE #DE9157 #57DE91
tetradic
#9157DE #DE5760 #A4DE57 #57DED5
square
#9157DE #DE5760 #A4DE57 #57DED5
split-complementary
#9157DE #DED557 #60DE57
monochromatic
#541F9C #7029CF #9157DE #B28AE8 #D4BDF2

Accessibility & contrast

On white

4.54
#9157DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#9157DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9157DE
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9157DE#FFFFFF#000000##000000
##9157DE1.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E2
Deuteranopia (green-blind)
#2675DB
Tritanopia (blue-blind)
#807492
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #9157de;
/* rgb */ color: rgb(145, 87, 222);
/* oklch */ color: oklch(58.8% 0.198 300.1);
Tailwind
colors: {
  custom: {
    50: '#b689e9',
    500: '#9157de',
    950: '#000000',
  },
}
SCSS
$custom: #9157de;
$custom-light: #b689e9;
$custom-dark: #000000;
JSON
{
  "hex": "#9157de",
  "rgb": {
    "r": 145,
    "g": 87,
    "b": 222
  },
  "hsl": {
    "h": 265.778,
    "s": 67.164,
    "l": 60.588
  },
  "oklch": {
    "l": 0.58759,
    "c": 0.19816,
    "h": 300.1
  },
  "luminance": 0.1811
}

Semantic roles & 50–950 ramp

primary
#9157DE
secondary
#CCE2AF
accent
#CF1680
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9157DE

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

Preview Lab → · Contrast checker → · Palette generator →

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