#9845CA#9845CA

#9845CA is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.8% C 0.203 H 310.1°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#9845CA
RGBrgb(152, 69, 202)
HSLhsl(277, 56%, 53%)
HSVhsv(277, 66%, 79%)
CMYKcmyk(24.8%, 65.8%, 0%, 20.8%)
CIE-LABlab(45.90, 56.65, -54.88)
CIE-LCHlch(45.90, 78.87, 315.91°)
OKLaboklab(55.84% 0.1305 -0.155)
OKLCHoklch(55.84% 0.203 310.1)
XYZxyz(25.7356, 15.1964, 57.4431)
Luminance0.1520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845CA #77CA45
analogous
#5545CA #9845CA #CA45B9
triadic
#9845CA #CA9845 #45CA98
tetradic
#9845CA #CA5545 #77CA45 #45B9CA
square
#9845CA #CA5545 #77CA45 #45B9CA
split-complementary
#9845CA #B9CA45 #45CA55
monochromatic
#552174 #772FA3 #9845CA #B275D8 #CDA4E5

Accessibility & contrast

On white

5.20
#9845CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#9845CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845CA
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845CA#FFFFFF#000000##FFFFFF
##9845CA1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CE
Deuteranopia (green-blind)
#326EC7
Tritanopia (blue-blind)
#916082
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9845ca;
/* rgb */ color: rgb(152, 69, 202);
/* oklch */ color: oklch(55.8% 0.203 310.1);
Tailwind
colors: {
  custom: {
    50: '#ba7edb',
    500: '#9845ca',
    950: '#000000',
  },
}
SCSS
$custom: #9845ca;
$custom-light: #ba7edb;
$custom-dark: #000000;
JSON
{
  "hex": "#9845ca",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 277.444,
    "s": 55.649,
    "l": 53.137
  },
  "oklch": {
    "l": 0.55836,
    "c": 0.20261,
    "h": 310.1
  },
  "luminance": 0.15196
}

Semantic roles & 50–950 ramp

primary
#9845CA
secondary
#AED299
accent
#DF4981
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9845CA

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

Preview Lab → · Contrast checker → · Palette generator →

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