#9845D3#9845D3

#9845D3 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.4% C 0.212 H 307.8°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#9845D3
RGBrgb(152, 69, 211)
HSLhsl(275, 62%, 55%)
HSVhsv(275, 67%, 83%)
CMYKcmyk(28%, 67.3%, 0%, 17.3%)
CIE-LABlab(46.49, 58.64, -59.11)
CIE-LCHlch(46.49, 83.26, 314.77°)
OKLaboklab(56.45% 0.1297 -0.1674)
OKLCHoklch(56.45% 0.212 307.8)
XYZxyz(26.8324, 15.6352, 63.2197)
Luminance0.1563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845D3 #80D345
analogous
#5145D3 #9845D3 #D345C7
triadic
#9845D3 #D39845 #45D398
tetradic
#9845D3 #D35145 #80D345 #45C7D3
square
#9845D3 #D35145 #80D345 #45C7D3
split-complementary
#9845D3 #C7D345 #45D351
monochromatic
#571E7F #792AB1 #9845D3 #B376DF #CFA8EA

Accessibility & contrast

On white

5.09
#9845D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#9845D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845D3
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845D3#FFFFFF#000000##FFFFFF
##9845D31.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD7
Deuteranopia (green-blind)
#246FD0
Tritanopia (blue-blind)
#8F6487
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9845d3;
/* rgb */ color: rgb(152, 69, 211);
/* oklch */ color: oklch(56.4% 0.212 307.8);
Tailwind
colors: {
  custom: {
    50: '#bb7fe1',
    500: '#9845d3',
    950: '#000000',
  },
}
SCSS
$custom: #9845d3;
$custom-light: #bb7fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#9845d3",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 211
  },
  "hsl": {
    "h": 275.07,
    "s": 61.739,
    "l": 54.902
  },
  "oklch": {
    "l": 0.56447,
    "c": 0.21177,
    "h": 307.8
  },
  "luminance": 0.15635
}

Semantic roles & 50–950 ramp

primary
#9845D3
secondary
#B5D89C
accent
#E54386
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9845D3

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

Preview Lab → · Contrast checker → · Palette generator →

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