#9837AF#9837AF

#9837AF is a mid, vivid purple. Relative luminance 0.125; OKLCH L 52.5% C 0.195 H 319.3°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#9837AF
RGBrgb(152, 55, 175)
HSLhsl(289, 52%, 45%)
HSVhsv(289, 69%, 69%)
CMYKcmyk(13.1%, 68.6%, 0%, 31.4%)
CIE-LABlab(42.01, 57.21, -45.35)
CIE-LCHlch(42.01, 73.00, 321.60°)
OKLaboklab(52.5% 0.1477 -0.127)
OKLCHoklch(52.5% 0.195 319.3)
XYZxyz(22.0519, 12.5040, 41.8011)
Luminance0.1250 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9837AF #4EAF37
analogous
#5C37AF #9837AF #AF378A
triadic
#9837AF #AF9837 #37AF98
tetradic
#9837AF #AF5C37 #4EAF37 #378AAF
square
#9837AF #AF5C37 #4EAF37 #378AAF
split-complementary
#9837AF #8AAF37 #37AF5C
monochromatic
#471A52 #702880 #9837AF #B559CB #CA87D9

Accessibility & contrast

On white

6.00
#9837AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#9837AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9837AF
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9837AF#FFFFFF#000000##FFFFFF
##9837AF1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#015DB2
Deuteranopia (green-blind)
#4066AC
Tritanopia (blue-blind)
#984D6F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9837af;
/* rgb */ color: rgb(152, 55, 175);
/* oklch */ color: oklch(52.5% 0.195 319.3);
Tailwind
colors: {
  custom: {
    50: '#ba76c7',
    500: '#9837af',
    950: '#000000',
  },
}
SCSS
$custom: #9837af;
$custom-light: #ba76c7;
$custom-dark: #000000;
JSON
{
  "hex": "#9837af",
  "rgb": {
    "r": 152,
    "g": 55,
    "b": 175
  },
  "hsl": {
    "h": 288.5,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.52497,
    "c": 0.19477,
    "h": 319.3
  },
  "luminance": 0.12503
}

Semantic roles & 50–950 ramp

primary
#9837AF
secondary
#8CC37F
accent
#DC4C68
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9837AF

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

Preview Lab → · Contrast checker → · Palette generator →

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