#9845BE#9845BE

#9845BE is a mid, vivid purple. Relative luminance 0.146; OKLCH L 55.1% C 0.190 H 313.5°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#9845BE
RGBrgb(152, 69, 190)
HSLhsl(281, 48%, 51%)
HSVhsv(281, 64%, 75%)
CMYKcmyk(20%, 63.7%, 0%, 25.5%)
CIE-LABlab(45.15, 54.06, -49.12)
CIE-LCHlch(45.15, 73.05, 317.74°)
OKLaboklab(55.05% 0.1311 -0.1381)
OKLCHoklch(55.05% 0.19 313.5)
XYZxyz(24.3697, 14.6501, 50.2492)
Luminance0.1465 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845BE #6BBE45
analogous
#5B45BE #9845BE #BE45A7
triadic
#9845BE #BE9845 #45BE98
tetradic
#9845BE #BE5B45 #6BBE45 #45A7BE
square
#9845BE #BE5B45 #6BBE45 #45A7BE
split-complementary
#9845BE #A7BE45 #45BE5B
monochromatic
#512365 #753393 #9845BE #B172CE #CAA0DE

Accessibility & contrast

On white

5.34
#9845BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#9845BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845BE
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845BE#FFFFFF#000000##FFFFFF
##9845BE1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F66C2
Deuteranopia (green-blind)
#3F6DBB
Tritanopia (blue-blind)
#945C7B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9845be;
/* rgb */ color: rgb(152, 69, 190);
/* oklch */ color: oklch(55.1% 0.190 313.5);
Tailwind
colors: {
  custom: {
    50: '#ba7ed2',
    500: '#9845be',
    950: '#000000',
  },
}
SCSS
$custom: #9845be;
$custom-light: #ba7ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#9845be",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 190
  },
  "hsl": {
    "h": 281.157,
    "s": 48.207,
    "l": 50.784
  },
  "oklch": {
    "l": 0.55054,
    "c": 0.19043,
    "h": 313.5
  },
  "luminance": 0.14649
}

Semantic roles & 50–950 ramp

primary
#9845BE
secondary
#A5CA95
accent
#D8507B
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9845BE

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

Preview Lab → · Contrast checker → · Palette generator →

#9845BE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva