#9845D2#9845D2

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

Color values

HEX#9845D2
RGBrgb(152, 69, 210)
HSLhsl(275, 61%, 55%)
HSVhsv(275, 67%, 82%)
CMYKcmyk(27.6%, 67.1%, 0%, 17.6%)
CIE-LABlab(46.43, 58.42, -58.64)
CIE-LCHlch(46.43, 82.77, 314.89°)
OKLaboklab(56.38% 0.1298 -0.166)
OKLCHoklch(56.38% 0.211 308)
XYZxyz(26.7075, 15.5852, 62.5616)
Luminance0.1558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845D2 #7FD245
analogous
#5245D2 #9845D2 #D245C6
triadic
#9845D2 #D29845 #45D298
tetradic
#9845D2 #D25245 #7FD245 #45C6D2
square
#9845D2 #D25245 #7FD245 #45C6D2
split-complementary
#9845D2 #C6D245 #45D252
monochromatic
#571F7E #792AAF #9845D2 #B376DE #CFA8EA

Accessibility & contrast

On white

5.10
#9845D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#9845D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845D2
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845D2#FFFFFF#000000##FFFFFF
##9845D21.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD6
Deuteranopia (green-blind)
#266FCF
Tritanopia (blue-blind)
#8F6386
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9845d2;
/* rgb */ color: rgb(152, 69, 210);
/* oklch */ color: oklch(56.4% 0.211 308.0);
Tailwind
colors: {
  custom: {
    50: '#bb7ee1',
    500: '#9845d2',
    950: '#000000',
  },
}
SCSS
$custom: #9845d2;
$custom-light: #bb7ee1;
$custom-dark: #000000;
JSON
{
  "hex": "#9845d2",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 210
  },
  "hsl": {
    "h": 275.319,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56378,
    "c": 0.21075,
    "h": 308
  },
  "luminance": 0.15585
}

Semantic roles & 50–950 ramp

primary
#9845D2
secondary
#B4D79C
accent
#E44486
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9845D2

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

Preview Lab → · Contrast checker → · Palette generator →

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