#845AEF#845AEF

#845AEF is a mid, highly saturated violet. Relative luminance 0.184; OKLCH L 59.1% C 0.213 H 291.5°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#845AEF
RGBrgb(132, 90, 239)
HSLhsl(257, 82%, 65%)
HSVhsv(257, 62%, 94%)
CMYKcmyk(44.8%, 62.3%, 0%, 6.3%)
CIE-LABlab(50.04, 50.99, -69.35)
CIE-LCHlch(50.04, 86.08, 306.33°)
OKLaboklab(59.11% 0.0781 -0.1982)
OKLCHoklch(59.11% 0.213 291.5)
XYZxyz(28.7475, 18.4489, 83.6909)
Luminance0.1845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845AEF #C5EF5A
analogous
#5A7BEF #845AEF #CF5AEF
triadic
#845AEF #EF845A #5AEF84
tetradic
#845AEF #EF5A7B #C5EF5A #5AEFCF
square
#845AEF #EF5A7B #C5EF5A #5AEFCF
split-complementary
#845AEF #EFCF5A #7BEF5A
monochromatic
#4212BC #5A22EA #845AEF #AE92F4 #D7CAFA

Accessibility & contrast

On white

4.48
#845AEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#845AEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #845AEF
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845AEF#FFFFFF#000000##000000
##845AEF1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F4
Deuteranopia (green-blind)
#0074EC
Tritanopia (blue-blind)
#647D9C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #845aef;
/* rgb */ color: rgb(132, 90, 239);
/* oklch */ color: oklch(59.1% 0.213 291.5);
Tailwind
colors: {
  custom: {
    50: '#af8bf5',
    500: '#845aef',
    950: '#000000',
  },
}
SCSS
$custom: #845aef;
$custom-light: #af8bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#845aef",
  "rgb": {
    "r": 132,
    "g": 90,
    "b": 239
  },
  "hsl": {
    "h": 256.913,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.5911,
    "c": 0.21303,
    "h": 291.5
  },
  "luminance": 0.1845
}

Semantic roles & 50–950 ramp

primary
#845AEF
secondary
#DEECB9
accent
#DF07A2
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #845AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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