#845BD4#845BD4

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

Color values

HEX#845BD4
RGBrgb(132, 91, 212)
HSLhsl(260, 58%, 59%)
HSVhsv(260, 57%, 83%)
CMYKcmyk(37.7%, 57.1%, 0%, 16.9%)
CIE-LABlab(48.44, 43.20, -56.66)
CIE-LCHlch(48.44, 71.25, 307.32°)
OKLaboklab(57.37% 0.0781 -0.1609)
OKLCHoklch(57.37% 0.179 295.9)
XYZxyz(25.1374, 17.1407, 64.2587)
Luminance0.1714 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845BD4 #ABD45B
analogous
#5B6FD4 #845BD4 #C15BD4
triadic
#845BD4 #D4845B #5BD484
tetradic
#845BD4 #D45B6F #ABD45B #5BD4C1
square
#845BD4 #D45B6F #ABD45B #5BD4C1
split-complementary
#845BD4 #D4C15B #6FD45B
monochromatic
#49268F #6232C0 #845BD4 #A88BE1 #CDBCED

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##845BD4#FFFFFF#000000##FFFFFF
##845BD41.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)
#1A74D8
Deuteranopia (green-blind)
#2C71D1
Tritanopia (blue-blind)
#71758F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #845bd4;
/* rgb */ color: rgb(132, 91, 212);
/* oklch */ color: oklch(57.4% 0.179 295.9);
Tailwind
colors: {
  custom: {
    50: '#ac8be2',
    500: '#845bd4',
    950: '#000000',
  },
}
SCSS
$custom: #845bd4;
$custom-light: #ac8be2;
$custom-dark: #000000;
JSON
{
  "hex": "#845bd4",
  "rgb": {
    "r": 132,
    "g": 91,
    "b": 212
  },
  "hsl": {
    "h": 260.331,
    "s": 58.454,
    "l": 59.412
  },
  "oklch": {
    "l": 0.57368,
    "c": 0.17887,
    "h": 295.9
  },
  "luminance": 0.17141
}

Semantic roles & 50–950 ramp

primary
#845BD4
secondary
#CDDDAE
accent
#E246AD
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #845BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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