#9151F2#9151F2

#9151F2 is a mid, highly saturated violet. Relative luminance 0.183; OKLCH L 59.4% C 0.228 H 297.1°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#9151F2
RGBrgb(145, 81, 242)
HSLhsl(264, 86%, 63%)
HSVhsv(264, 67%, 95%)
CMYKcmyk(40.1%, 66.5%, 0%, 5.1%)
CIE-LABlab(49.88, 58.90, -71.23)
CIE-LCHlch(49.88, 92.43, 309.59°)
OKLaboklab(59.37% 0.1042 -0.2033)
OKLCHoklch(59.37% 0.228 297.1)
XYZxyz(30.6423, 18.3149, 85.9079)
Luminance0.1832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9151F2 #B2F251
analogous
#5161F2 #9151F2 #E151F2
triadic
#9151F2 #F29151 #51F291
tetradic
#9151F2 #F25161 #B2F251 #51F2E1
square
#9151F2 #F25161 #B2F251 #51F2E1
split-complementary
#9151F2 #F2E151 #61F251
monochromatic
#530EBB #6D18EE #9151F2 #B58AF6 #D9C3FB

Accessibility & contrast

On white

4.50
#9151F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#9151F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9151F2
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9151F2#FFFFFF#000000##000000
##9151F21.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077F7
Deuteranopia (green-blind)
#0075EF
Tritanopia (blue-blind)
#79779B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9151f2;
/* rgb */ color: rgb(145, 81, 242);
/* oklch */ color: oklch(59.4% 0.228 297.1);
Tailwind
colors: {
  custom: {
    50: '#b886f7',
    500: '#9151f2',
    950: '#000000',
  },
}
SCSS
$custom: #9151f2;
$custom-light: #b886f7;
$custom-dark: #000000;
JSON
{
  "hex": "#9151f2",
  "rgb": {
    "r": 145,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 263.851,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59369,
    "c": 0.22845,
    "h": 297.1
  },
  "luminance": 0.18315
}

Semantic roles & 50–950 ramp

primary
#9151F2
secondary
#D5ECB3
accent
#E3038A
background
#FBF8FF
surface
#F7F0FF
border
#D0CBD7
text
#120B17
muted
#817C85

Preview Lab

Preview with #9151F2

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

Preview Lab → · Contrast checker → · Palette generator →

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