#845AE4#845AE4

#845AE4 is a mid, vivid violet. Relative luminance 0.178; OKLCH L 58.3% C 0.200 H 293.2°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#845AE4
RGBrgb(132, 90, 228)
HSLhsl(258, 72%, 62%)
HSVhsv(258, 61%, 89%)
CMYKcmyk(42.1%, 60.5%, 0%, 10.6%)
CIE-LABlab(49.28, 48.02, -64.39)
CIE-LCHlch(49.28, 80.33, 306.71°)
OKLaboklab(58.32% 0.0788 -0.1836)
OKLCHoklch(58.32% 0.2 293.2)
XYZxyz(27.1717, 17.8186, 75.3915)
Luminance0.1782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845AE4 #BAE45A
analogous
#5A75E4 #845AE4 #C95AE4
triadic
#845AE4 #E4845A #5AE484
tetradic
#845AE4 #E45A75 #BAE45A #5AE4C9
square
#845AE4 #E45A75 #BAE45A #5AE4C9
split-complementary
#845AE4 #E4C95A #75E45A
monochromatic
#461CA8 #5D25DB #845AE4 #AB8FED #D2C3F5

Accessibility & contrast

On white

4.60
#845AE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#845AE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #845AE4
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845AE4#FFFFFF#000000##FFFFFF
##845AE41.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E8
Deuteranopia (green-blind)
#0073E1
Tritanopia (blue-blind)
#6A7997
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #845ae4;
/* rgb */ color: rgb(132, 90, 228);
/* oklch */ color: oklch(58.3% 0.200 293.2);
Tailwind
colors: {
  custom: {
    50: '#ae8aed',
    500: '#845ae4',
    950: '#000000',
  },
}
SCSS
$custom: #845ae4;
$custom-light: #ae8aed;
$custom-dark: #000000;
JSON
{
  "hex": "#845ae4",
  "rgb": {
    "r": 132,
    "g": 90,
    "b": 228
  },
  "hsl": {
    "h": 258.261,
    "s": 71.875,
    "l": 62.353
  },
  "oklch": {
    "l": 0.58315,
    "c": 0.19984,
    "h": 293.2
  },
  "luminance": 0.17819
}

Semantic roles & 50–950 ramp

primary
#845AE4
secondary
#D7E6B4
accent
#D41299
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #845AE4

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

Preview Lab → · Contrast checker → · Palette generator →

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