#9845CE#9845CE

#9845CE is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.1% C 0.207 H 309.0°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#9845CE
RGBrgb(152, 69, 206)
HSLhsl(276, 58%, 54%)
HSVhsv(276, 67%, 81%)
CMYKcmyk(26.2%, 66.5%, 0%, 19.2%)
CIE-LABlab(46.16, 57.53, -56.77)
CIE-LCHlch(46.16, 80.82, 315.38°)
OKLaboklab(56.11% 0.1302 -0.1605)
OKLCHoklch(56.11% 0.207 309)
XYZxyz(26.2154, 15.3883, 59.9698)
Luminance0.1539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845CE #7BCE45
analogous
#5445CE #9845CE #CE45C0
triadic
#9845CE #CE9845 #45CE98
tetradic
#9845CE #CE5445 #7BCE45 #45C0CE
square
#9845CE #CE5445 #7BCE45 #45C0CE
split-complementary
#9845CE #C0CE45 #45CE54
monochromatic
#562079 #782DA9 #9845CE #B375DB #CEA6E8

Accessibility & contrast

On white

5.15
#9845CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#9845CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845CE
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845CE#FFFFFF#000000##FFFFFF
##9845CE1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD2
Deuteranopia (green-blind)
#2D6ECB
Tritanopia (blue-blind)
#906284
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9845ce;
/* rgb */ color: rgb(152, 69, 206);
/* oklch */ color: oklch(56.1% 0.207 309.0);
Tailwind
colors: {
  custom: {
    50: '#ba7ede',
    500: '#9845ce',
    950: '#000000',
  },
}
SCSS
$custom: #9845ce;
$custom-light: #ba7ede;
$custom-dark: #000000;
JSON
{
  "hex": "#9845ce",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 206
  },
  "hsl": {
    "h": 276.35,
    "s": 58.298,
    "l": 53.922
  },
  "oklch": {
    "l": 0.56105,
    "c": 0.20668,
    "h": 309
  },
  "luminance": 0.15388
}

Semantic roles & 50–950 ramp

primary
#9845CE
secondary
#B1D59A
accent
#E24683
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9845CE

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

Preview Lab → · Contrast checker → · Palette generator →

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