#845CD4#845CD4

#845CD4 is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.5% C 0.177 H 295.7°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#845CD4
RGBrgb(132, 92, 212)
HSLhsl(260, 58%, 60%)
HSVhsv(260, 57%, 83%)
CMYKcmyk(37.7%, 56.6%, 0%, 16.9%)
CIE-LABlab(48.65, 42.64, -56.32)
CIE-LCHlch(48.65, 70.64, 307.13°)
OKLaboklab(57.53% 0.0769 -0.1599)
OKLCHoklch(57.53% 0.177 295.7)
XYZxyz(25.2235, 17.3128, 64.2874)
Luminance0.1731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845CD4 #ACD45C
analogous
#5C70D4 #845CD4 #C05CD4
triadic
#845CD4 #D4845C #5CD484
tetradic
#845CD4 #D45C70 #ACD45C #5CD4C0
square
#845CD4 #D45C70 #ACD45C #5CD4C0
split-complementary
#845CD4 #D4C05C #70D45C
monochromatic
#492690 #6233C0 #845CD4 #A98CE1 #CDBDEE

Accessibility & contrast

On white

4.71
#845CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#845CD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #845CD4
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845CD4#FFFFFF#000000##FFFFFF
##845CD41.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E74D8
Deuteranopia (green-blind)
#2D72D1
Tritanopia (blue-blind)
#71758F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #845cd4;
/* rgb */ color: rgb(132, 92, 212);
/* oklch */ color: oklch(57.5% 0.177 295.7);
Tailwind
colors: {
  custom: {
    50: '#ac8be2',
    500: '#845cd4',
    950: '#000000',
  },
}
SCSS
$custom: #845cd4;
$custom-light: #ac8be2;
$custom-dark: #000000;
JSON
{
  "hex": "#845cd4",
  "rgb": {
    "r": 132,
    "g": 92,
    "b": 212
  },
  "hsl": {
    "h": 260,
    "s": 58.252,
    "l": 59.608
  },
  "oklch": {
    "l": 0.57526,
    "c": 0.17742,
    "h": 295.7
  },
  "luminance": 0.17313
}

Semantic roles & 50–950 ramp

primary
#845CD4
secondary
#CEDDAF
accent
#E146AE
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #845CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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