#845BCB#845BCB

#845BCB is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.8% C 0.168 H 297.7°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#845BCB
RGBrgb(132, 91, 203)
HSLhsl(262, 52%, 58%)
HSVhsv(262, 55%, 80%)
CMYKcmyk(35%, 55.2%, 0%, 20.4%)
CIE-LABlab(47.88, 40.84, -52.40)
CIE-LCHlch(47.88, 66.44, 307.93°)
OKLaboklab(56.78% 0.078 -0.1484)
OKLCHoklch(56.78% 0.168 297.7)
XYZxyz(24.0336, 16.6992, 58.4454)
Luminance0.1670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845BCB #A2CB5B
analogous
#5B6ACB #845BCB #BC5BCB
triadic
#845BCB #CB845B #5BCB84
tetradic
#845BCB #CB5B6A #A2CB5B #5BCBBC
square
#845BCB #CB5B6A #A2CB5B #5BCBBC
split-complementary
#845BCB #CBBC5B #6ACB5B
monochromatic
#4A2982 #6438B1 #845BCB #A789DA #CAB8E8

Accessibility & contrast

On white

4.84
#845BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#845BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #845BCB
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845BCB#FFFFFF#000000##FFFFFF
##845BCB1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A72CF
Deuteranopia (green-blind)
#3770C8
Tritanopia (blue-blind)
#74728A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #845bcb;
/* rgb */ color: rgb(132, 91, 203);
/* oklch */ color: oklch(56.8% 0.168 297.7);
Tailwind
colors: {
  custom: {
    50: '#ac8bdb',
    500: '#845bcb',
    950: '#000000',
  },
}
SCSS
$custom: #845bcb;
$custom-light: #ac8bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#845bcb",
  "rgb": {
    "r": 132,
    "g": 91,
    "b": 203
  },
  "hsl": {
    "h": 261.964,
    "s": 51.852,
    "l": 57.647
  },
  "oklch": {
    "l": 0.56778,
    "c": 0.16765,
    "h": 297.7
  },
  "luminance": 0.167
}

Semantic roles & 50–950 ramp

primary
#845BCB
secondary
#C7D7AA
accent
#DB4CA7
background
#FAF8FD
surface
#F5F0FB
border
#CFCBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #845BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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