#9D27E2#9D27E2

#9D27E2 is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 55.4% C 0.257 H 308.2°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#9D27E2
RGBrgb(157, 39, 226)
HSLhsl(278, 76%, 52%)
HSVhsv(278, 83%, 89%)
CMYKcmyk(30.5%, 82.7%, 0%, 11.4%)
CIE-LABlab(44.39, 73.78, -71.06)
CIE-LCHlch(44.39, 102.44, 316.08°)
OKLaboklab(55.45% 0.159 -0.2022)
OKLCHoklch(55.45% 0.257 308.2)
XYZxyz(28.3547, 14.1106, 73.1666)
Luminance0.1411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D27E2 #6CE227
analogous
#4027E2 #9D27E2 #E227CA
triadic
#9D27E2 #E29D27 #27E29D
tetradic
#9D27E2 #E24027 #6CE227 #27CAE2
square
#9D27E2 #E24027 #6CE227 #27CAE2
split-complementary
#9D27E2 #CAE227 #27E240
monochromatic
#56117E #7A18B4 #9D27E2 #B55DE9 #CE93F0

Accessibility & contrast

On white

5.49
#9D27E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#9D27E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D27E2
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D27E2#FFFFFF#000000##FFFFFF
##9D27E21.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E7
Deuteranopia (green-blind)
#006ADE
Tritanopia (blue-blind)
#925B88
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9d27e2;
/* rgb */ color: rgb(157, 39, 226);
/* oklch */ color: oklch(55.4% 0.257 308.2);
Tailwind
colors: {
  custom: {
    50: '#c072ec',
    500: '#9d27e2',
    950: '#000000',
  },
}
SCSS
$custom: #9d27e2;
$custom-light: #c072ec;
$custom-dark: #000000;
JSON
{
  "hex": "#9d27e2",
  "rgb": {
    "r": 157,
    "g": 39,
    "b": 226
  },
  "hsl": {
    "h": 277.861,
    "s": 76.327,
    "l": 51.961
  },
  "oklch": {
    "l": 0.55449,
    "c": 0.25718,
    "h": 308.2
  },
  "luminance": 0.1411
}

Semantic roles & 50–950 ramp

primary
#9D27E2
secondary
#A8DB89
accent
#F3357B
background
#FCF7FE
surface
#F8EDFD
border
#D1C8D5
text
#130916
muted
#827B84

Preview Lab

Preview with #9D27E2

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

Preview Lab → · Contrast checker → · Palette generator →

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