#845BE2#845BE2

#845BE2 is a mid, vivid violet. Relative luminance 0.179; OKLCH L 58.3% C 0.196 H 293.4°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#845BE2
RGBrgb(132, 91, 226)
HSLhsl(258, 70%, 62%)
HSVhsv(258, 60%, 89%)
CMYKcmyk(41.6%, 59.7%, 0%, 11.4%)
CIE-LABlab(49.35, 46.93, -63.15)
CIE-LCHlch(49.35, 78.68, 306.62°)
OKLaboklab(58.33% 0.0778 -0.18)
OKLCHoklch(58.33% 0.196 293.4)
XYZxyz(26.9806, 17.8780, 73.9660)
Luminance0.1788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845BE2 #B9E25B
analogous
#5B76E2 #845BE2 #C75BE2
triadic
#845BE2 #E2845B #5BE284
tetradic
#845BE2 #E25B76 #B9E25B #5BE2C7
square
#845BE2 #E25B76 #B9E25B #5BE2C7
split-complementary
#845BE2 #E2C75B #76E25B
monochromatic
#471DA5 #5D27D9 #845BE2 #AB8FEB #D2C3F4

Accessibility & contrast

On white

4.59
#845BE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#845BE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #845BE2
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845BE2#FFFFFF#000000##FFFFFF
##845BE21.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E6
Deuteranopia (green-blind)
#0573DF
Tritanopia (blue-blind)
#6B7996
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #845be2;
/* rgb */ color: rgb(132, 91, 226);
/* oklch */ color: oklch(58.3% 0.196 293.4);
Tailwind
colors: {
  custom: {
    50: '#ae8bec',
    500: '#845be2',
    950: '#000000',
  },
}
SCSS
$custom: #845be2;
$custom-light: #ae8bec;
$custom-dark: #000000;
JSON
{
  "hex": "#845be2",
  "rgb": {
    "r": 132,
    "g": 91,
    "b": 226
  },
  "hsl": {
    "h": 258.222,
    "s": 69.948,
    "l": 62.157
  },
  "oklch": {
    "l": 0.58326,
    "c": 0.19607,
    "h": 293.4
  },
  "luminance": 0.17879
}

Semantic roles & 50–950 ramp

primary
#845BE2
secondary
#D6E5B4
accent
#D21498
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #845BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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