#9845C8#9845C8

#9845C8 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.7% C 0.201 H 310.6°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#9845C8
RGBrgb(152, 69, 200)
HSLhsl(278, 54%, 53%)
HSVhsv(278, 66%, 78%)
CMYKcmyk(24%, 65.5%, 0%, 21.6%)
CIE-LABlab(45.77, 56.22, -53.93)
CIE-LCHlch(45.77, 77.90, 316.19°)
OKLaboklab(55.7% 0.1306 -0.1522)
OKLCHoklch(55.7% 0.201 310.6)
XYZxyz(25.5004, 15.1023, 56.2041)
Luminance0.1510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845C8 #75C845
analogous
#5645C8 #9845C8 #C845B7
triadic
#9845C8 #C89845 #45C898
tetradic
#9845C8 #C85645 #75C845 #45B7C8
square
#9845C8 #C85645 #75C845 #45B7C8
split-complementary
#9845C8 #B7C845 #45C856
monochromatic
#542171 #772FA0 #9845C8 #B274D6 #CCA3E4

Accessibility & contrast

On white

5.22
#9845C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#9845C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845C8
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845C8#FFFFFF#000000##FFFFFF
##9845C81.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CC
Deuteranopia (green-blind)
#346EC5
Tritanopia (blue-blind)
#926081
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9845c8;
/* rgb */ color: rgb(152, 69, 200);
/* oklch */ color: oklch(55.7% 0.201 310.6);
Tailwind
colors: {
  custom: {
    50: '#ba7ed9',
    500: '#9845c8',
    950: '#000000',
  },
}
SCSS
$custom: #9845c8;
$custom-light: #ba7ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#9845c8",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 200
  },
  "hsl": {
    "h": 278.015,
    "s": 54.357,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55703,
    "c": 0.20057,
    "h": 310.6
  },
  "luminance": 0.15102
}

Semantic roles & 50–950 ramp

primary
#9845C8
secondary
#ADD198
accent
#DE4A80
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9845C8

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

Preview Lab → · Contrast checker → · Palette generator →

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