#9157F2#9157F2

#9157F2 is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 60.2% C 0.221 H 296.3°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#9157F2
RGBrgb(145, 87, 242)
HSLhsl(262, 86%, 65%)
HSVhsv(262, 64%, 95%)
CMYKcmyk(40.1%, 64%, 0%, 5.1%)
CIE-LABlab(50.97, 55.89, -69.45)
CIE-LCHlch(50.97, 89.14, 308.83°)
OKLaboklab(60.16% 0.098 -0.1981)
OKLCHoklch(60.16% 0.221 296.3)
XYZxyz(31.1081, 19.2463, 86.0631)
Luminance0.1925 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9157F2 #B8F257
analogous
#576BF2 #9157F2 #DF57F2
triadic
#9157F2 #F29157 #57F291
tetradic
#9157F2 #F2576B #B8F257 #57F2DF
square
#9157F2 #F2576B #B8F257 #57F2DF
split-complementary
#9157F2 #F2DF57 #6BF257
monochromatic
#510FC0 #6C1EEE #9157F2 #B690F6 #DBC9FB

Accessibility & contrast

On white

4.33
#9157F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#9157F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9157F2
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9157F2#FFFFFF#000000##000000
##9157F21.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF7
Deuteranopia (green-blind)
#0077EF
Tritanopia (blue-blind)
#787B9D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9157f2;
/* rgb */ color: rgb(145, 87, 242);
/* oklch */ color: oklch(60.2% 0.221 296.3);
Tailwind
colors: {
  custom: {
    50: '#b88af7',
    500: '#9157f2',
    950: '#000000',
  },
}
SCSS
$custom: #9157f2;
$custom-light: #b88af7;
$custom-dark: #000000;
JSON
{
  "hex": "#9157f2",
  "rgb": {
    "r": 145,
    "g": 87,
    "b": 242
  },
  "hsl": {
    "h": 262.452,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.60159,
    "c": 0.22101,
    "h": 296.3
  },
  "luminance": 0.19247
}

Semantic roles & 50–950 ramp

primary
#9157F2
secondary
#D9EDB8
accent
#E2038F
background
#FBF8FF
surface
#F7F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #9157F2

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

Preview Lab → · Contrast checker → · Palette generator →

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