#9845CD#9845CD

#9845CD is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.0% C 0.206 H 309.3°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#9845CD
RGBrgb(152, 69, 205)
HSLhsl(277, 58%, 54%)
HSVhsv(277, 66%, 80%)
CMYKcmyk(25.9%, 66.3%, 0%, 19.6%)
CIE-LABlab(46.10, 57.31, -56.30)
CIE-LCHlch(46.10, 80.33, 315.51°)
OKLaboklab(56.04% 0.1303 -0.1591)
OKLCHoklch(56.04% 0.206 309.3)
XYZxyz(26.0943, 15.3399, 59.3320)
Luminance0.1534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845CD #7ACD45
analogous
#5445CD #9845CD #CD45BE
triadic
#9845CD #CD9845 #45CD98
tetradic
#9845CD #CD5445 #7ACD45 #45BECD
square
#9845CD #CD5445 #7ACD45 #45BECD
split-complementary
#9845CD #BECD45 #45CD54
monochromatic
#552077 #782DA8 #9845CD #B375DA #CDA5E7

Accessibility & contrast

On white

5.16
#9845CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#9845CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845CD
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845CD#FFFFFF#000000##FFFFFF
##9845CD1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD1
Deuteranopia (green-blind)
#2E6ECA
Tritanopia (blue-blind)
#906283
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9845cd;
/* rgb */ color: rgb(152, 69, 205);
/* oklch */ color: oklch(56.0% 0.206 309.3);
Tailwind
colors: {
  custom: {
    50: '#ba7edd',
    500: '#9845cd',
    950: '#000000',
  },
}
SCSS
$custom: #9845cd;
$custom-light: #ba7edd;
$custom-dark: #000000;
JSON
{
  "hex": "#9845cd",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 276.618,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.56037,
    "c": 0.20565,
    "h": 309.3
  },
  "luminance": 0.15339
}

Semantic roles & 50–950 ramp

primary
#9845CD
secondary
#B0D49A
accent
#E14783
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9845CD

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

Preview Lab → · Contrast checker → · Palette generator →

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