#9839AF#9839AF

#9839AF is a mid, vivid purple. Relative luminance 0.127; OKLCH L 52.7% C 0.192 H 319.2°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#9839AF
RGBrgb(152, 57, 175)
HSLhsl(288, 51%, 45%)
HSVhsv(288, 67%, 69%)
CMYKcmyk(13.1%, 67.4%, 0%, 31.4%)
CIE-LABlab(42.30, 56.37, -44.87)
CIE-LCHlch(42.30, 72.05, 321.48°)
OKLaboklab(52.71% 0.1455 -0.1256)
OKLCHoklch(52.71% 0.192 319.2)
XYZxyz(22.1489, 12.6978, 41.8334)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9839AF #50AF39
analogous
#5D39AF #9839AF #AF398B
triadic
#9839AF #AF9839 #39AF98
tetradic
#9839AF #AF5D39 #50AF39 #398BAF
square
#9839AF #AF5D39 #50AF39 #398BAF
split-complementary
#9839AF #8BAF39 #39AF5D
monochromatic
#481B53 #702A81 #9839AF #B45BCA #C98AD9

Accessibility & contrast

On white

5.93
#9839AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#9839AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9839AF
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9839AF#FFFFFF#000000##FFFFFF
##9839AF1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A5DB2
Deuteranopia (green-blind)
#4167AC
Tritanopia (blue-blind)
#984E6F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9839af;
/* rgb */ color: rgb(152, 57, 175);
/* oklch */ color: oklch(52.7% 0.192 319.2);
Tailwind
colors: {
  custom: {
    50: '#ba77c7',
    500: '#9839af',
    950: '#000000',
  },
}
SCSS
$custom: #9839af;
$custom-light: #ba77c7;
$custom-dark: #000000;
JSON
{
  "hex": "#9839af",
  "rgb": {
    "r": 152,
    "g": 57,
    "b": 175
  },
  "hsl": {
    "h": 288.305,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.52711,
    "c": 0.19219,
    "h": 319.2
  },
  "luminance": 0.12697
}

Semantic roles & 50–950 ramp

primary
#9839AF
secondary
#8EC381
accent
#DA4D69
background
#FBF7FC
surface
#F7EEF8
border
#D0C9D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9839AF

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

Preview Lab → · Contrast checker → · Palette generator →

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