#9840A3#9840A3

#9840A3 is a mid, vivid purple. Relative luminance 0.130; OKLCH L 52.8% C 0.171 H 323.1°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#9840A3
RGBrgb(152, 64, 163)
HSLhsl(293, 44%, 45%)
HSVhsv(293, 61%, 64%)
CMYKcmyk(6.7%, 60.7%, 0%, 36.1%)
CIE-LABlab(42.74, 50.93, -37.04)
CIE-LCHlch(42.74, 62.98, 323.97°)
OKLaboklab(52.81% 0.1369 -0.1028)
OKLCHoklch(52.81% 0.171 323.1)
XYZxyz(21.3925, 12.9877, 36.0233)
Luminance0.1299 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9840A3 #4BA340
analogous
#6640A3 #9840A3 #A3407D
triadic
#9840A3 #A39840 #40A398
tetradic
#9840A3 #A36640 #4BA340 #407DA3
square
#9840A3 #A36640 #4BA340 #407DA3
split-complementary
#9840A3 #7DA340 #40A366
monochromatic
#461D4B #6F2F77 #9840A3 #B660C0 #CA8CD2

Accessibility & contrast

On white

5.84
#9840A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#9840A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9840A3
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9840A3#FFFFFF#000000##FFFFFF
##9840A31.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5EA6
Deuteranopia (green-blind)
#4E68A0
Tritanopia (blue-blind)
#9A4E6B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9840a3;
/* rgb */ color: rgb(152, 64, 163);
/* oklch */ color: oklch(52.8% 0.171 323.1);
Tailwind
colors: {
  custom: {
    50: '#b97abf',
    500: '#9840a3',
    950: '#000000',
  },
}
SCSS
$custom: #9840a3;
$custom-light: #b97abf;
$custom-dark: #000000;
JSON
{
  "hex": "#9840a3",
  "rgb": {
    "r": 152,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 293.333,
    "s": 43.612,
    "l": 44.51
  },
  "oklch": {
    "l": 0.52809,
    "c": 0.17124,
    "h": 323.1
  },
  "luminance": 0.12987
}

Semantic roles & 50–950 ramp

primary
#9840A3
secondary
#89BD82
accent
#D35463
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#120A12
muted
#817C81

Preview Lab

Preview with #9840A3

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

Preview Lab → · Contrast checker → · Palette generator →

#9840A3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva