#9151D4#9151D4

#9151D4 is a mid, vivid violet. Relative luminance 0.167; OKLCH L 57.2% C 0.195 H 303.2°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#9151D4
RGBrgb(145, 81, 212)
HSLhsl(269, 60%, 57%)
HSVhsv(269, 62%, 83%)
CMYKcmyk(31.6%, 61.8%, 0%, 16.9%)
CIE-LABlab(47.83, 51.53, -57.57)
CIE-LCHlch(47.83, 77.26, 311.83°)
OKLaboklab(57.24% 0.107 -0.1632)
OKLCHoklch(57.24% 0.195 303.2)
XYZxyz(26.5004, 16.6581, 64.0938)
Luminance0.1666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9151D4 #94D451
analogous
#5152D4 #9151D4 #D351D4
triadic
#9151D4 #D49151 #51D491
tetradic
#9151D4 #D45152 #94D451 #51D4D3
square
#9151D4 #D45152 #94D451 #51D4D3
split-complementary
#9151D4 #D4D351 #52D451
monochromatic
#542289 #722EBA #9151D4 #B082E0 #CFB3EC

Accessibility & contrast

On white

4.85
#9151D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#9151D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9151D4
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9151D4#FFFFFF#000000##FFFFFF
##9151D41.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070D8
Deuteranopia (green-blind)
#2C71D1
Tritanopia (blue-blind)
#846D8B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9151d4;
/* rgb */ color: rgb(145, 81, 212);
/* oklch */ color: oklch(57.2% 0.195 303.2);
Tailwind
colors: {
  custom: {
    50: '#b585e2',
    500: '#9151d4',
    950: '#000000',
  },
}
SCSS
$custom: #9151d4;
$custom-light: #b585e2;
$custom-dark: #000000;
JSON
{
  "hex": "#9151d4",
  "rgb": {
    "r": 145,
    "g": 81,
    "b": 212
  },
  "hsl": {
    "h": 269.313,
    "s": 60.369,
    "l": 57.451
  },
  "oklch": {
    "l": 0.57243,
    "c": 0.1951,
    "h": 303.2
  },
  "luminance": 0.16658
}

Semantic roles & 50–950 ramp

primary
#9151D4
secondary
#C1DBA6
accent
#E44496
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9151D4

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

Preview Lab → · Contrast checker → · Palette generator →

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