#9159F2#9159F2

#9159F2 is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 60.4% C 0.218 H 296.0°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#9159F2
RGBrgb(145, 89, 242)
HSLhsl(262, 85%, 65%)
HSVhsv(262, 63%, 95%)
CMYKcmyk(40.1%, 63.2%, 0%, 5.1%)
CIE-LABlab(51.35, 54.86, -68.83)
CIE-LCHlch(51.35, 88.02, 308.56°)
OKLaboklab(60.43% 0.0959 -0.1963)
OKLCHoklch(60.43% 0.218 296)
XYZxyz(31.2723, 19.5747, 86.1178)
Luminance0.1958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9159F2 #BAF259
analogous
#596DF2 #9159F2 #DE59F2
triadic
#9159F2 #F29159 #59F291
tetradic
#9159F2 #F2596D #BAF259 #59F2DE
square
#9159F2 #F2596D #BAF259 #59F2DE
split-complementary
#9159F2 #F2DE59 #6DF259
monochromatic
#500FC1 #6B20EE #9159F2 #B792F6 #DCCBFB

Accessibility & contrast

On white

4.27
#9159F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#9159F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9159F2
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9159F2#FFFFFF#000000##000000
##9159F21.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF7
Deuteranopia (green-blind)
#0078EF
Tritanopia (blue-blind)
#787C9E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9159f2;
/* rgb */ color: rgb(145, 89, 242);
/* oklch */ color: oklch(60.4% 0.218 296.0);
Tailwind
colors: {
  custom: {
    50: '#b88bf7',
    500: '#9159f2',
    950: '#000000',
  },
}
SCSS
$custom: #9159f2;
$custom-light: #b88bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#9159f2",
  "rgb": {
    "r": 145,
    "g": 89,
    "b": 242
  },
  "hsl": {
    "h": 261.961,
    "s": 85.475,
    "l": 64.902
  },
  "oklch": {
    "l": 0.60433,
    "c": 0.21847,
    "h": 296
  },
  "luminance": 0.19575
}

Semantic roles & 50–950 ramp

primary
#9159F2
secondary
#DAEDB9
accent
#E20491
background
#FBF8FF
surface
#F7F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #9159F2

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

Preview Lab → · Contrast checker → · Palette generator →

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