#9827CA#9827CA

#9827CA is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.9% C 0.235 H 312.3°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#9827CA
RGBrgb(152, 39, 202)
HSLhsl(282, 68%, 47%)
HSVhsv(282, 81%, 79%)
CMYKcmyk(24.8%, 80.7%, 0%, 20.8%)
CIE-LABlab(41.83, 68.21, -61.46)
CIE-LCHlch(41.83, 91.81, 317.98°)
OKLaboklab(52.95% 0.1585 -0.1741)
OKLCHoklch(52.95% 0.235 312.3)
XYZxyz(24.3331, 12.3914, 56.9756)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9827CA #59CA27
analogous
#4627CA #9827CA #CA27AB
triadic
#9827CA #CA9827 #27CA98
tetradic
#9827CA #CA4627 #59CA27 #27ABCA
square
#9827CA #CA4627 #59CA27 #27ABCA
split-complementary
#9827CA #ABCA27 #27CA46
monochromatic
#4B1363 #711D97 #9827CA #B251DD #C984E7

Accessibility & contrast

On white

6.04
#9827CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#9827CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9827CA
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9827CA#FFFFFF#000000##FFFFFF
##9827CA1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCE
Deuteranopia (green-blind)
#0065C7
Tritanopia (blue-blind)
#92517A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9827ca;
/* rgb */ color: rgb(152, 39, 202);
/* oklch */ color: oklch(52.9% 0.235 312.3);
Tailwind
colors: {
  custom: {
    50: '#bc70db',
    500: '#9827ca',
    950: '#000000',
  },
}
SCSS
$custom: #9827ca;
$custom-light: #bc70db;
$custom-dark: #000000;
JSON
{
  "hex": "#9827ca",
  "rgb": {
    "r": 152,
    "g": 39,
    "b": 202
  },
  "hsl": {
    "h": 281.595,
    "s": 67.635,
    "l": 47.255
  },
  "oklch": {
    "l": 0.52949,
    "c": 0.23544,
    "h": 312.3
  },
  "luminance": 0.12391
}

Semantic roles & 50–950 ramp

primary
#9827CA
secondary
#96D07C
accent
#EB3D72
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130815
muted
#827B83

Preview Lab

Preview with #9827CA

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

Preview Lab → · Contrast checker → · Palette generator →

#9827CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva