#845AEC#845AEC

#845AEC is a mid, highly saturated violet. Relative luminance 0.183; OKLCH L 58.9% C 0.209 H 291.9°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#845AEC
RGBrgb(132, 90, 236)
HSLhsl(257, 79%, 64%)
HSVhsv(257, 62%, 93%)
CMYKcmyk(44.1%, 61.9%, 0%, 7.5%)
CIE-LABlab(49.83, 50.18, -68.01)
CIE-LCHlch(49.83, 84.51, 306.42°)
OKLaboklab(58.89% 0.0783 -0.1943)
OKLCHoklch(58.89% 0.209 291.9)
XYZxyz(28.3080, 18.2731, 81.3762)
Luminance0.1827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845AEC #C2EC5A
analogous
#5A79EC #845AEC #CD5AEC
triadic
#845AEC #EC845A #5AEC84
tetradic
#845AEC #EC5A79 #C2EC5A #5AECCD
square
#845AEC #EC5A79 #C2EC5A #5AECCD
split-complementary
#845AEC #ECCD5A #79EC5A
monochromatic
#4315B7 #5B23E6 #845AEC #AD91F2 #D6C8F9

Accessibility & contrast

On white

4.51
#845AEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#845AEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #845AEC
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845AEC#FFFFFF#000000##000000
##845AEC1.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F1
Deuteranopia (green-blind)
#0074E9
Tritanopia (blue-blind)
#667C9B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #845aec;
/* rgb */ color: rgb(132, 90, 236);
/* oklch */ color: oklch(58.9% 0.209 291.9);
Tailwind
colors: {
  custom: {
    50: '#af8bf3',
    500: '#845aec',
    950: '#000000',
  },
}
SCSS
$custom: #845aec;
$custom-light: #af8bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#845aec",
  "rgb": {
    "r": 132,
    "g": 90,
    "b": 236
  },
  "hsl": {
    "h": 257.26,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.5889,
    "c": 0.20946,
    "h": 291.9
  },
  "luminance": 0.18274
}

Semantic roles & 50–950 ramp

primary
#845AEC
secondary
#DCEBB7
accent
#DC0A9F
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #845AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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