#845BCA#845BCA

#845BCA is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.7% C 0.166 H 297.9°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#845BCA
RGBrgb(132, 91, 202)
HSLhsl(262, 51%, 57%)
HSVhsv(262, 55%, 79%)
CMYKcmyk(34.7%, 55%, 0%, 20.8%)
CIE-LABlab(47.82, 40.58, -51.93)
CIE-LCHlch(47.82, 65.90, 308.01°)
OKLaboklab(56.71% 0.0779 -0.147)
OKLCHoklch(56.71% 0.166 297.9)
XYZxyz(23.9148, 16.6517, 57.8198)
Luminance0.1665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845BCA #A1CA5B
analogous
#5B6ACA #845BCA #BB5BCA
triadic
#845BCA #CA845B #5BCA84
tetradic
#845BCA #CA5B6A #A1CA5B #5BCABB
square
#845BCA #CA5B6A #A1CA5B #5BCABB
split-complementary
#845BCA #CABB5B #6ACA5B
monochromatic
#4A2A81 #6439AF #845BCA #A789D9 #C9B8E8

Accessibility & contrast

On white

4.85
#845BCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#845BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #845BCA
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845BCA#FFFFFF#000000##FFFFFF
##845BCA1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B72CE
Deuteranopia (green-blind)
#3870C7
Tritanopia (blue-blind)
#74718A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #845bca;
/* rgb */ color: rgb(132, 91, 202);
/* oklch */ color: oklch(56.7% 0.166 297.9);
Tailwind
colors: {
  custom: {
    50: '#ac8bdb',
    500: '#845bca',
    950: '#000000',
  },
}
SCSS
$custom: #845bca;
$custom-light: #ac8bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#845bca",
  "rgb": {
    "r": 132,
    "g": 91,
    "b": 202
  },
  "hsl": {
    "h": 262.162,
    "s": 51.152,
    "l": 57.451
  },
  "oklch": {
    "l": 0.56714,
    "c": 0.16639,
    "h": 297.9
  },
  "luminance": 0.16652
}

Semantic roles & 50–950 ramp

primary
#845BCA
secondary
#C6D7AA
accent
#DB4DA6
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #845BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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