#845AE2#845AE2

#845AE2 is a mid, vivid violet. Relative luminance 0.177; OKLCH L 58.2% C 0.197 H 293.6°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#845AE2
RGBrgb(132, 90, 226)
HSLhsl(259, 70%, 62%)
HSVhsv(259, 60%, 89%)
CMYKcmyk(41.6%, 60.2%, 0%, 11.4%)
CIE-LABlab(49.14, 47.48, -63.48)
CIE-LCHlch(49.14, 79.28, 306.80°)
OKLaboklab(58.17% 0.0789 -0.181)
OKLCHoklch(58.17% 0.197 293.6)
XYZxyz(26.8957, 17.7081, 73.9377)
Luminance0.1771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845AE2 #B8E25A
analogous
#5A74E2 #845AE2 #C85AE2
triadic
#845AE2 #E2845A #5AE284
tetradic
#845AE2 #E25A74 #B8E25A #5AE2C8
square
#845AE2 #E25A74 #B8E25A #5AE2C8
split-complementary
#845AE2 #E2C85A #74E25A
monochromatic
#471DA5 #5D26D9 #845AE2 #AB8EEB #D2C2F4

Accessibility & contrast

On white

4.62
#845AE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#845AE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #845AE2
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845AE2#FFFFFF#000000##FFFFFF
##845AE21.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E6
Deuteranopia (green-blind)
#0072DF
Tritanopia (blue-blind)
#6B7896
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #845ae2;
/* rgb */ color: rgb(132, 90, 226);
/* oklch */ color: oklch(58.2% 0.197 293.6);
Tailwind
colors: {
  custom: {
    50: '#ae8aec',
    500: '#845ae2',
    950: '#000000',
  },
}
SCSS
$custom: #845ae2;
$custom-light: #ae8aec;
$custom-dark: #000000;
JSON
{
  "hex": "#845ae2",
  "rgb": {
    "r": 132,
    "g": 90,
    "b": 226
  },
  "hsl": {
    "h": 258.529,
    "s": 70.103,
    "l": 61.961
  },
  "oklch": {
    "l": 0.58174,
    "c": 0.19742,
    "h": 293.6
  },
  "luminance": 0.17709
}

Semantic roles & 50–950 ramp

primary
#845AE2
secondary
#D5E5B3
accent
#D21397
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #845AE2

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

Preview Lab → · Contrast checker → · Palette generator →

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