#845CA2#845CA2

#845CA2 is a mid, moderate violet. Relative luminance 0.152; OKLCH L 54.6% C 0.114 H 309.4°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#845CA2
RGBrgb(132, 92, 162)
HSLhsl(274, 28%, 50%)
HSVhsv(274, 43%, 64%)
CMYKcmyk(18.5%, 43.2%, 0%, 36.5%)
CIE-LABlab(45.86, 30.06, -31.71)
CIE-LCHlch(45.86, 43.69, 313.47°)
OKLaboklab(54.55% 0.0723 -0.088)
OKLCHoklch(54.55% 0.114 309.4)
XYZxyz(19.8632, 15.1687, 36.0569)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845CA2 #7AA25C
analogous
#615CA2 #845CA2 #A25C9D
triadic
#845CA2 #A2845C #5CA284
tetradic
#845CA2 #A2615C #7AA25C #5C9DA2
square
#845CA2 #A2615C #7AA25C #5C9DA2
split-complementary
#845CA2 #9DA25C #5CA261
monochromatic
#443054 #64467B #845CA2 #A183B8 #BFAACF

Accessibility & contrast

On white

5.21
#845CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#845CA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #845CA2
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845CA2#FFFFFF#000000##FFFFFF
##845CA21.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D6BA5
Deuteranopia (green-blind)
#576DA0
Tritanopia (blue-blind)
#806777
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #845ca2;
/* rgb */ color: rgb(132, 92, 162);
/* oklch */ color: oklch(54.6% 0.114 309.4);
Tailwind
colors: {
  custom: {
    50: '#a98bbe',
    500: '#845ca2',
    950: '#000000',
  },
}
SCSS
$custom: #845ca2;
$custom-light: #a98bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#845ca2",
  "rgb": {
    "r": 132,
    "g": 92,
    "b": 162
  },
  "hsl": {
    "h": 274.286,
    "s": 27.559,
    "l": 49.804
  },
  "oklch": {
    "l": 0.54551,
    "c": 0.11392,
    "h": 309.4
  },
  "luminance": 0.15168
}

Semantic roles & 50–950 ramp

primary
#845CA2
secondary
#ABBD9D
accent
#C4648D
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #845CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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