#845CB1#845CB1

#845CB1 is a mid, vivid violet. Relative luminance 0.157; OKLCH L 55.4% C 0.133 H 304.1°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#845CB1
RGBrgb(132, 92, 177)
HSLhsl(268, 35%, 53%)
HSVhsv(268, 48%, 69%)
CMYKcmyk(25.4%, 48%, 0%, 30.6%)
CIE-LABlab(46.62, 33.66, -39.33)
CIE-LCHlch(46.62, 51.77, 310.56°)
OKLaboklab(55.37% 0.0746 -0.1102)
OKLCHoklch(55.37% 0.133 304.1)
XYZxyz(21.2770, 15.7342, 43.5025)
Luminance0.1573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845CB1 #89B15C
analogous
#5C5EB1 #845CB1 #AE5CB1
triadic
#845CB1 #B1845C #5CB184
tetradic
#845CB1 #B15C5E #89B15C #5CB1AE
square
#845CB1 #B15C5E #89B15C #5CB1AE
split-complementary
#845CB1 #B1AE5C #5EB15C
monochromatic
#482F63 #66438D #845CB1 #A385C5 #C2AFD9

Accessibility & contrast

On white

5.06
#845CB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#845CB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #845CB1
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845CB1#FFFFFF#000000##FFFFFF
##845CB11.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#446DB4
Deuteranopia (green-blind)
#4E6FAF
Tritanopia (blue-blind)
#7C6B7E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #845cb1;
/* rgb */ color: rgb(132, 92, 177);
/* oklch */ color: oklch(55.4% 0.133 304.1);
Tailwind
colors: {
  custom: {
    50: '#aa8bc9',
    500: '#845cb1',
    950: '#000000',
  },
}
SCSS
$custom: #845cb1;
$custom-light: #aa8bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#845cb1",
  "rgb": {
    "r": 132,
    "g": 92,
    "b": 177
  },
  "hsl": {
    "h": 268.235,
    "s": 35.27,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55368,
    "c": 0.13308,
    "h": 304.1
  },
  "luminance": 0.15734
}

Semantic roles & 50–950 ramp

primary
#845CB1
secondary
#B5C7A2
accent
#CB5C97
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #845CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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