#9845CB#9845CB

#9845CB is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.9% C 0.204 H 309.8°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#9845CB
RGBrgb(152, 69, 203)
HSLhsl(277, 56%, 53%)
HSVhsv(277, 66%, 80%)
CMYKcmyk(25.1%, 66%, 0%, 20.4%)
CIE-LABlab(45.97, 56.87, -55.35)
CIE-LCHlch(45.97, 79.36, 315.78°)
OKLaboklab(55.9% 0.1304 -0.1564)
OKLCHoklch(55.9% 0.204 309.8)
XYZxyz(25.8544, 15.2440, 58.0687)
Luminance0.1524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845CB #78CB45
analogous
#5545CB #9845CB #CB45BB
triadic
#9845CB #CB9845 #45CB98
tetradic
#9845CB #CB5545 #78CB45 #45BBCB
square
#9845CB #CB5545 #78CB45 #45BBCB
split-complementary
#9845CB #BBCB45 #45CB55
monochromatic
#552175 #782EA5 #9845CB #B275D8 #CDA5E6

Accessibility & contrast

On white

5.19
#9845CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#9845CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845CB
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845CB#FFFFFF#000000##FFFFFF
##9845CB1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#316EC8
Tritanopia (blue-blind)
#916182
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9845cb;
/* rgb */ color: rgb(152, 69, 203);
/* oklch */ color: oklch(55.9% 0.204 309.8);
Tailwind
colors: {
  custom: {
    50: '#ba7edc',
    500: '#9845cb',
    950: '#000000',
  },
}
SCSS
$custom: #9845cb;
$custom-light: #ba7edc;
$custom-dark: #000000;
JSON
{
  "hex": "#9845cb",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 277.164,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.55903,
    "c": 0.20362,
    "h": 309.8
  },
  "luminance": 0.15243
}

Semantic roles & 50–950 ramp

primary
#9845CB
secondary
#AFD399
accent
#E04882
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9845CB

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

Preview Lab → · Contrast checker → · Palette generator →

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