#9A51CD#9A51CD

#9A51CD is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.8% C 0.190 H 308.8°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#9A51CD
RGBrgb(154, 81, 205)
HSLhsl(275, 55%, 56%)
HSVhsv(275, 60%, 80%)
CMYKcmyk(24.9%, 60.5%, 0%, 19.6%)
CIE-LABlab(48.46, 51.97, -52.48)
CIE-LCHlch(48.46, 73.86, 314.73°)
OKLaboklab(57.8% 0.1188 -0.1479)
OKLCHoklch(57.8% 0.19 308.8)
XYZxyz(27.2861, 17.1631, 59.6212)
Luminance0.1716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A51CD #84CD51
analogous
#5C51CD #9A51CD #CD51C2
triadic
#9A51CD #CD9A51 #51CD9A
tetradic
#9A51CD #CD5C51 #84CD51 #51C2CD
square
#9A51CD #CD5C51 #84CD51 #51C2CD
split-complementary
#9A51CD #C2CD51 #51CD5C
monochromatic
#5A257F #7B32AF #9A51CD #B681DB #D1B0E8

Accessibility & contrast

On white

4.74
#9A51CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#9A51CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A51CD
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A51CD#FFFFFF#000000##FFFFFF
##9A51CD1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B70D1
Deuteranopia (green-blind)
#3F74CA
Tritanopia (blue-blind)
#936987
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9a51cd;
/* rgb */ color: rgb(154, 81, 205);
/* oklch */ color: oklch(57.8% 0.190 308.8);
Tailwind
colors: {
  custom: {
    50: '#bb85dd',
    500: '#9a51cd',
    950: '#000000',
  },
}
SCSS
$custom: #9a51cd;
$custom-light: #bb85dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9a51cd",
  "rgb": {
    "r": 154,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 275.323,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.57804,
    "c": 0.18975,
    "h": 308.8
  },
  "luminance": 0.17163
}

Semantic roles & 50–950 ramp

primary
#9A51CD
secondary
#B8D7A3
accent
#DF4987
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9A51CD

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

Preview Lab → · Contrast checker → · Palette generator →

#9A51CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva