#9827A2#9827A2

#9827A2 is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.2% C 0.202 H 324.4°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#9827A2
RGBrgb(152, 39, 162)
HSLhsl(295, 61%, 39%)
HSVhsv(295, 76%, 64%)
CMYKcmyk(6.2%, 75.9%, 0%, 36.5%)
CIE-LABlab(39.13, 60.72, -42.19)
CIE-LCHlch(39.13, 73.94, 325.21°)
OKLaboklab(50.19% 0.1643 -0.1176)
OKLCHoklch(50.19% 0.202 324.4)
XYZxyz(20.1955, 10.7364, 35.1840)
Luminance0.1074 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9827A2 #31A227
analogous
#5B27A2 #9827A2 #A2276F
triadic
#9827A2 #A29827 #27A298
tetradic
#9827A2 #A25B27 #31A227 #276FA2
square
#9827A2 #A25B27 #31A227 #276FA2
split-complementary
#9827A2 #6FA227 #27A25B
monochromatic
#3B0F3F #6A1B71 #9827A2 #C337CF #D269DB

Accessibility & contrast

On white

6.67
#9827A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#9827A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9827A2
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9827A2#FFFFFF#000000##FFFFFF
##9827A21.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A5
Deuteranopia (green-blind)
#3F619F
Tritanopia (blue-blind)
#9B3E63
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9827a2;
/* rgb */ color: rgb(152, 39, 162);
/* oklch */ color: oklch(50.2% 0.202 324.4);
Tailwind
colors: {
  custom: {
    50: '#ba6ebe',
    500: '#9827a2',
    950: '#000000',
  },
}
SCSS
$custom: #9827a2;
$custom-light: #ba6ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#9827a2",
  "rgb": {
    "r": 152,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 295.122,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50191,
    "c": 0.20206,
    "h": 324.4
  },
  "luminance": 0.10735
}

Semantic roles & 50–950 ramp

primary
#9827A2
secondary
#6BC164
accent
#E44351
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9827A2

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

Preview Lab → · Contrast checker → · Palette generator →

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