#9845DB#9845DB

#9845DB is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 57.0% C 0.220 H 305.8°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#9845DB
RGBrgb(152, 69, 219)
HSLhsl(273, 68%, 56%)
HSVhsv(273, 68%, 86%)
CMYKcmyk(30.6%, 68.5%, 0%, 14.1%)
CIE-LABlab(47.04, 60.43, -62.80)
CIE-LCHlch(47.04, 87.16, 313.90°)
OKLaboklab(57.01% 0.1288 -0.1783)
OKLCHoklch(57.01% 0.22 305.8)
XYZxyz(27.8604, 16.0464, 68.6336)
Luminance0.1605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845DB #88DB45
analogous
#4D45DB #9845DB #DB45D3
triadic
#9845DB #DB9845 #45DB98
tetradic
#9845DB #DB4D45 #88DB45 #45D3DB
square
#9845DB #DB4D45 #88DB45 #45D3DB
split-complementary
#9845DB #D3DB45 #45DB4D
monochromatic
#591B8B #7A25BE #9845DB #B478E5 #D1ACEF

Accessibility & contrast

On white

4.99
#9845DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#9845DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845DB
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845DB#FFFFFF#000000##FFFFFF
##9845DB1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDF
Deuteranopia (green-blind)
#1070D8
Tritanopia (blue-blind)
#8C678B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9845db;
/* rgb */ color: rgb(152, 69, 219);
/* oklch */ color: oklch(57.0% 0.220 305.8);
Tailwind
colors: {
  custom: {
    50: '#bb7fe7',
    500: '#9845db',
    950: '#000000',
  },
}
SCSS
$custom: #9845db;
$custom-light: #bb7fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#9845db",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 219
  },
  "hsl": {
    "h": 273.2,
    "s": 67.568,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57008,
    "c": 0.21991,
    "h": 305.8
  },
  "luminance": 0.16046
}

Semantic roles & 50–950 ramp

primary
#9845DB
secondary
#BBDD9F
accent
#EA3D8B
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9845DB

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

Preview Lab → · Contrast checker → · Palette generator →

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