#9827AF#9827AF

#9827AF is a mid, highly saturated purple. Relative luminance 0.112; OKLCH L 51.0% C 0.213 H 320.1°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#9827AF
RGBrgb(152, 39, 175)
HSLhsl(290, 64%, 42%)
HSVhsv(290, 78%, 69%)
CMYKcmyk(13.1%, 77.7%, 0%, 31.4%)
CIE-LABlab(39.95, 63.05, -48.64)
CIE-LCHlch(39.95, 79.63, 322.35°)
OKLaboklab(51.04% 0.1631 -0.1365)
OKLCHoklch(51.04% 0.213 320.1)
XYZxyz(21.4113, 11.2227, 41.5875)
Luminance0.1122 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9827AF #3EAF27
analogous
#5427AF #9827AF #AF2782
triadic
#9827AF #AF9827 #27AF98
tetradic
#9827AF #AF5427 #3EAF27 #2782AF
square
#9827AF #AF5427 #3EAF27 #2782AF
split-complementary
#9827AF #82AF27 #27AF54
monochromatic
#41114B #6D1C7D #9827AF #BB3FD4 #CD71DF

Accessibility & contrast

On white

6.47
#9827AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#9827AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9827AF
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9827AF#FFFFFF#000000##FFFFFF
##9827AF1.006.473.246.47
#FFFFFF6.471.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B3
Deuteranopia (green-blind)
#3562AC
Tritanopia (blue-blind)
#98446B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9827af;
/* rgb */ color: rgb(152, 39, 175);
/* oklch */ color: oklch(51.0% 0.213 320.1);
Tailwind
colors: {
  custom: {
    50: '#ba6fc7',
    500: '#9827af',
    950: '#000000',
  },
}
SCSS
$custom: #9827af;
$custom-light: #ba6fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#9827af",
  "rgb": {
    "r": 152,
    "g": 39,
    "b": 175
  },
  "hsl": {
    "h": 289.853,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51035,
    "c": 0.21271,
    "h": 320.1
  },
  "luminance": 0.11222
}

Semantic roles & 50–950 ramp

primary
#9827AF
secondary
#7BC66B
accent
#E7415D
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #9827AF

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

Preview Lab → · Contrast checker → · Palette generator →

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