#845AAA#845AAA

#845AAA is a mid, vivid violet. Relative luminance 0.151; OKLCH L 54.6% C 0.128 H 306.9°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#845AAA
RGBrgb(132, 90, 170)
HSLhsl(272, 32%, 51%)
HSVhsv(272, 47%, 67%)
CMYKcmyk(22.4%, 47.1%, 0%, 33.3%)
CIE-LABlab(45.80, 33.12, -36.53)
CIE-LCHlch(45.80, 49.31, 312.20°)
OKLaboklab(54.63% 0.0766 -0.102)
OKLCHoklch(54.63% 0.128 306.9)
XYZxyz(20.4261, 15.1203, 39.8649)
Luminance0.1512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845AAA #80AA5A
analogous
#5C5AAA #845AAA #AA5AA8
triadic
#845AAA #AA845A #5AAA84
tetradic
#845AAA #AA5C5A #80AA5A #5AA8AA
square
#845AAA #AA5C5A #80AA5A #5AA8AA
split-complementary
#845AAA #A8AA5A #5AAA5C
monochromatic
#462F5B #654483 #845AAA #A282BF #C0ABD4

Accessibility & contrast

On white

5.22
#845AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#845AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #845AAA
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845AAA#FFFFFF#000000##FFFFFF
##845AAA1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#466BAD
Deuteranopia (green-blind)
#506DA8
Tritanopia (blue-blind)
#7E677A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #845aaa;
/* rgb */ color: rgb(132, 90, 170);
/* oklch */ color: oklch(54.6% 0.128 306.9);
Tailwind
colors: {
  custom: {
    50: '#a989c3',
    500: '#845aaa',
    950: '#000000',
  },
}
SCSS
$custom: #845aaa;
$custom-light: #a989c3;
$custom-dark: #000000;
JSON
{
  "hex": "#845aaa",
  "rgb": {
    "r": 132,
    "g": 90,
    "b": 170
  },
  "hsl": {
    "h": 271.5,
    "s": 32,
    "l": 50.98
  },
  "oklch": {
    "l": 0.54632,
    "c": 0.12755,
    "h": 306.9
  },
  "luminance": 0.1512
}

Semantic roles & 50–950 ramp

primary
#845AAA
secondary
#AFC29E
accent
#C86091
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #845AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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