#845DCD#845DCD

#845DCD is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.2% C 0.167 H 296.9°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#845DCD
RGBrgb(132, 93, 205)
HSLhsl(261, 53%, 58%)
HSVhsv(261, 55%, 80%)
CMYKcmyk(35.6%, 54.6%, 0%, 19.6%)
CIE-LABlab(48.44, 40.23, -52.66)
CIE-LCHlch(48.44, 66.26, 307.38°)
OKLaboklab(57.23% 0.0755 -0.1491)
OKLCHoklch(57.23% 0.167 296.9)
XYZxyz(24.4467, 17.1416, 59.7665)
Luminance0.1714 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845DCD #A6CD5D
analogous
#5D6ECD #845DCD #BC5DCD
triadic
#845DCD #CD845D #5DCD84
tetradic
#845DCD #CD5D6E #A6CD5D #5DCDBC
square
#845DCD #CD5D6E #A6CD5D #5DCDBC
split-complementary
#845DCD #CDBC5D #6ECD5D
monochromatic
#4A2986 #6338B5 #845DCD #A88CDB #CBBBEA

Accessibility & contrast

On white

4.74
#845DCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#845DCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #845DCD
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845DCD#FFFFFF#000000##FFFFFF
##845DCD1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C74D1
Deuteranopia (green-blind)
#3872CA
Tritanopia (blue-blind)
#73748C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #845dcd;
/* rgb */ color: rgb(132, 93, 205);
/* oklch */ color: oklch(57.2% 0.167 296.9);
Tailwind
colors: {
  custom: {
    50: '#ac8cdd',
    500: '#845dcd',
    950: '#000000',
  },
}
SCSS
$custom: #845dcd;
$custom-light: #ac8cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#845dcd",
  "rgb": {
    "r": 132,
    "g": 93,
    "b": 205
  },
  "hsl": {
    "h": 260.893,
    "s": 52.83,
    "l": 58.431
  },
  "oklch": {
    "l": 0.5723,
    "c": 0.16718,
    "h": 296.9
  },
  "luminance": 0.17142
}

Semantic roles & 50–950 ramp

primary
#845DCD
secondary
#CAD9AD
accent
#DC4CAA
background
#FAF8FD
surface
#F5F0FB
border
#CFCBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #845DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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