#845CA5#845CA5

#845CA5 is a mid, moderate violet. Relative luminance 0.153; OKLCH L 54.7% C 0.118 H 308.2°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#845CA5
RGBrgb(132, 92, 165)
HSLhsl(273, 29%, 50%)
HSVhsv(273, 44%, 65%)
CMYKcmyk(20%, 44.2%, 0%, 35.3%)
CIE-LABlab(46.01, 30.77, -33.25)
CIE-LCHlch(46.01, 45.30, 312.78°)
OKLaboklab(54.71% 0.0728 -0.0925)
OKLCHoklch(54.71% 0.118 308.2)
XYZxyz(20.1331, 15.2767, 37.4781)
Luminance0.1528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845CA5 #7DA55C
analogous
#5F5CA5 #845CA5 #A55CA1
triadic
#845CA5 #A5845C #5CA584
tetradic
#845CA5 #A55F5C #7DA55C #5CA1A5
square
#845CA5 #A55F5C #7DA55C #5CA1A5
split-complementary
#845CA5 #A1A55C #5CA55F
monochromatic
#453057 #65467E #845CA5 #A283BB #C0ABD1

Accessibility & contrast

On white

5.18
#845CA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#845CA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #845CA5
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845CA5#FFFFFF#000000##FFFFFF
##845CA51.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B6BA8
Deuteranopia (green-blind)
#556EA3
Tritanopia (blue-blind)
#806878
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #845ca5;
/* rgb */ color: rgb(132, 92, 165);
/* oklch */ color: oklch(54.7% 0.118 308.2);
Tailwind
colors: {
  custom: {
    50: '#a98bc0',
    500: '#845ca5',
    950: '#000000',
  },
}
SCSS
$custom: #845ca5;
$custom-light: #a98bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#845ca5",
  "rgb": {
    "r": 132,
    "g": 92,
    "b": 165
  },
  "hsl": {
    "h": 272.877,
    "s": 28.854,
    "l": 50.392
  },
  "oklch": {
    "l": 0.54709,
    "c": 0.11774,
    "h": 308.2
  },
  "luminance": 0.15276
}

Semantic roles & 50–950 ramp

primary
#845CA5
secondary
#ADBF9E
accent
#C5638F
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #845CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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