#845AA2#845AA2

#845AA2 is a mid, moderate violet. Relative luminance 0.148; OKLCH L 54.2% C 0.117 H 309.9°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#845AA2
RGBrgb(132, 90, 162)
HSLhsl(275, 29%, 49%)
HSVhsv(275, 44%, 64%)
CMYKcmyk(18.5%, 44.4%, 0%, 36.5%)
CIE-LABlab(45.40, 31.22, -32.44)
CIE-LCHlch(45.40, 45.03, 313.90°)
OKLaboklab(54.2% 0.0753 -0.0902)
OKLCHoklch(54.2% 0.117 309.9)
XYZxyz(19.6923, 14.8268, 35.9999)
Luminance0.1483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845AA2 #78A25A
analogous
#605AA2 #845AA2 #A25A9C
triadic
#845AA2 #A2845A #5AA284
tetradic
#845AA2 #A2605A #78A25A #5A9CA2
square
#845AA2 #A2605A #78A25A #5A9CA2
split-complementary
#845AA2 #9CA25A #5AA260
monochromatic
#442E53 #64447B #845AA2 #A180B9 #BEA8CF

Accessibility & contrast

On white

5.30
#845AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#845AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #845AA2
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845AA2#FFFFFF#000000##FFFFFF
##845AA21.005.303.975.30
#FFFFFF5.301.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A69A5
Deuteranopia (green-blind)
#556CA0
Tritanopia (blue-blind)
#806576
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #845aa2;
/* rgb */ color: rgb(132, 90, 162);
/* oklch */ color: oklch(54.2% 0.117 309.9);
Tailwind
colors: {
  custom: {
    50: '#a989be',
    500: '#845aa2',
    950: '#000000',
  },
}
SCSS
$custom: #845aa2;
$custom-light: #a989be;
$custom-dark: #000000;
JSON
{
  "hex": "#845aa2",
  "rgb": {
    "r": 132,
    "g": 90,
    "b": 162
  },
  "hsl": {
    "h": 275,
    "s": 28.571,
    "l": 49.412
  },
  "oklch": {
    "l": 0.54199,
    "c": 0.11746,
    "h": 309.9
  },
  "luminance": 0.14826
}

Semantic roles & 50–950 ramp

primary
#845AA2
secondary
#A9BD9B
accent
#C5638C
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100B12
muted
#7F7C81

Preview Lab

Preview with #845AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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