#845BD2#845BD2

#845BD2 is a mid, vivid violet. Relative luminance 0.170; OKLCH L 57.2% C 0.176 H 296.3°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#845BD2
RGBrgb(132, 91, 210)
HSLhsl(261, 57%, 59%)
HSVhsv(261, 57%, 82%)
CMYKcmyk(37.1%, 56.7%, 0%, 17.6%)
CIE-LABlab(48.31, 42.67, -55.72)
CIE-LCHlch(48.31, 70.18, 307.45°)
OKLaboklab(57.24% 0.0781 -0.1582)
OKLCHoklch(57.24% 0.176 296.3)
XYZxyz(24.8867, 17.0404, 62.9382)
Luminance0.1704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845BD2 #A9D25B
analogous
#5B6ED2 #845BD2 #C05BD2
triadic
#845BD2 #D2845B #5BD284
tetradic
#845BD2 #D25B6E #A9D25B #5BD2C0
square
#845BD2 #D25B6E #A9D25B #5BD2C0
split-complementary
#845BD2 #D2C05B #6ED25B
monochromatic
#49268C #6334BC #845BD2 #A88BDF #CCBBEC

Accessibility & contrast

On white

4.76
#845BD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#845BD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #845BD2
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845BD2#FFFFFF#000000##FFFFFF
##845BD21.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E73D6
Deuteranopia (green-blind)
#2F71CF
Tritanopia (blue-blind)
#71748E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #845bd2;
/* rgb */ color: rgb(132, 91, 210);
/* oklch */ color: oklch(57.2% 0.176 296.3);
Tailwind
colors: {
  custom: {
    50: '#ac8be0',
    500: '#845bd2',
    950: '#000000',
  },
}
SCSS
$custom: #845bd2;
$custom-light: #ac8be0;
$custom-dark: #000000;
JSON
{
  "hex": "#845bd2",
  "rgb": {
    "r": 132,
    "g": 91,
    "b": 210
  },
  "hsl": {
    "h": 260.672,
    "s": 56.938,
    "l": 59.02
  },
  "oklch": {
    "l": 0.57235,
    "c": 0.17638,
    "h": 296.3
  },
  "luminance": 0.17041
}

Semantic roles & 50–950 ramp

primary
#845BD2
secondary
#CCDCAD
accent
#E048AC
background
#FAF8FD
surface
#F5F0FB
border
#CFCBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #845BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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