#9D51DF#9D51DF

#9D51DF is a mid, highly saturated violet. Relative luminance 0.184; OKLCH L 59.3% C 0.210 H 305.5°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#9D51DF
RGBrgb(157, 81, 223)
HSLhsl(272, 69%, 60%)
HSVhsv(272, 64%, 87%)
CMYKcmyk(29.6%, 63.7%, 0%, 12.5%)
CIE-LABlab(49.95, 56.76, -60.33)
CIE-LCHlch(49.95, 82.83, 313.25°)
OKLaboklab(59.32% 0.1219 -0.1709)
OKLCHoklch(59.32% 0.21 305.5)
XYZxyz(30.1634, 18.3809, 71.7565)
Luminance0.1838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D51DF #93DF51
analogous
#5651DF #9D51DF #DF51DA
triadic
#9D51DF #DF9D51 #51DF9D
tetradic
#9D51DF #DF5651 #93DF51 #51DADF
square
#9D51DF #DF5651 #93DF51 #51DADF
split-complementary
#9D51DF #DADF51 #51DF56
monochromatic
#5F1C99 #7F26CD #9D51DF #BA85E9 #D7B8F2

Accessibility & contrast

On white

4.49
#9D51DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#9D51DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D51DF
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D51DF#FFFFFF#000000##000000
##9D51DF1.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E3
Deuteranopia (green-blind)
#2D77DC
Tritanopia (blue-blind)
#916F91
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9d51df;
/* rgb */ color: rgb(157, 81, 223);
/* oklch */ color: oklch(59.3% 0.210 305.5);
Tailwind
colors: {
  custom: {
    50: '#be86ea',
    500: '#9d51df',
    950: '#000000',
  },
}
SCSS
$custom: #9d51df;
$custom-light: #be86ea;
$custom-dark: #000000;
JSON
{
  "hex": "#9d51df",
  "rgb": {
    "r": 157,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 272.113,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.59323,
    "c": 0.20992,
    "h": 305.5
  },
  "luminance": 0.18381
}

Semantic roles & 50–950 ramp

primary
#9D51DF
secondary
#C4E1AA
accent
#EC3C8E
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9D51DF

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

Preview Lab → · Contrast checker → · Palette generator →

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