#845BB2#845BB2

#845BB2 is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.3% C 0.136 H 304.1°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#845BB2
RGBrgb(132, 91, 178)
HSLhsl(268, 36%, 53%)
HSVhsv(268, 49%, 70%)
CMYKcmyk(25.8%, 48.9%, 0%, 30.2%)
CIE-LABlab(46.45, 34.49, -40.20)
CIE-LCHlch(46.45, 52.96, 310.63°)
OKLaboklab(55.25% 0.0762 -0.1127)
OKLCHoklch(55.25% 0.136 304.1)
XYZxyz(21.2910, 15.6021, 44.0007)
Luminance0.1560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845BB2 #89B25B
analogous
#5B5DB2 #845BB2 #B05BB2
triadic
#845BB2 #B2845B #5BB284
tetradic
#845BB2 #B25B5D #89B25B #5BB2B0
square
#845BB2 #B25B5D #89B25B #5BB2B0
split-complementary
#845BB2 #B2B05B #5DB25B
monochromatic
#482F64 #66428D #845BB2 #A385C6 #C2AED9

Accessibility & contrast

On white

5.10
#845BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#845BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #845BB2
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845BB2#FFFFFF#000000##FFFFFF
##845BB21.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#426DB5
Deuteranopia (green-blind)
#4D6EB0
Tritanopia (blue-blind)
#7C6A7E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #845bb2;
/* rgb */ color: rgb(132, 91, 178);
/* oklch */ color: oklch(55.3% 0.136 304.1);
Tailwind
colors: {
  custom: {
    50: '#aa8ac9',
    500: '#845bb2',
    950: '#000000',
  },
}
SCSS
$custom: #845bb2;
$custom-light: #aa8ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#845bb2",
  "rgb": {
    "r": 132,
    "g": 91,
    "b": 178
  },
  "hsl": {
    "h": 268.276,
    "s": 36.1,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55254,
    "c": 0.13602,
    "h": 304.1
  },
  "luminance": 0.15602
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #845BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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