#845DCA#845DCA

#845DCA is a mid, vivid violet. Relative luminance 0.170; OKLCH L 57.0% C 0.163 H 297.5°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#845DCA
RGBrgb(132, 93, 202)
HSLhsl(261, 51%, 58%)
HSVhsv(261, 54%, 79%)
CMYKcmyk(34.7%, 54%, 0%, 20.8%)
CIE-LABlab(48.26, 39.44, -51.22)
CIE-LCHlch(48.26, 64.65, 307.60°)
OKLaboklab(57.04% 0.0754 -0.1449)
OKLCHoklch(57.04% 0.163 297.5)
XYZxyz(24.0881, 16.9982, 57.8776)
Luminance0.1700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845DCA #A3CA5D
analogous
#5D6CCA #845DCA #BB5DCA
triadic
#845DCA #CA845D #5DCA84
tetradic
#845DCA #CA5D6C #A3CA5D #5DCABB
square
#845DCA #CA5D6C #A3CA5D #5DCABB
split-complementary
#845DCA #CABB5D #6CCA5D
monochromatic
#4A2B82 #643AB0 #845DCA #A78BD9 #CAB9E8

Accessibility & contrast

On white

4.77
#845DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#845DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #845DCA
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845DCA#FFFFFF#000000##FFFFFF
##845DCA1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3073CE
Deuteranopia (green-blind)
#3B71C7
Tritanopia (blue-blind)
#74738B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #845dca;
/* rgb */ color: rgb(132, 93, 202);
/* oklch */ color: oklch(57.0% 0.163 297.5);
Tailwind
colors: {
  custom: {
    50: '#ab8cdb',
    500: '#845dca',
    950: '#000000',
  },
}
SCSS
$custom: #845dca;
$custom-light: #ab8cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#845dca",
  "rgb": {
    "r": 132,
    "g": 93,
    "b": 202
  },
  "hsl": {
    "h": 261.468,
    "s": 50.698,
    "l": 57.843
  },
  "oklch": {
    "l": 0.57038,
    "c": 0.16339,
    "h": 297.5
  },
  "luminance": 0.16999
}

Semantic roles & 50–950 ramp

primary
#845DCA
secondary
#C8D7AC
accent
#DA4EA8
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #845DCA

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

Preview Lab → · Contrast checker → · Palette generator →

#845DCA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva