#845DC9#845DC9

#845DC9 is a mid, vivid violet. Relative luminance 0.170; OKLCH L 57.0% C 0.162 H 297.7°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#845DC9
RGBrgb(132, 93, 201)
HSLhsl(262, 50%, 58%)
HSVhsv(262, 54%, 79%)
CMYKcmyk(34.3%, 53.7%, 0%, 21.2%)
CIE-LABlab(48.20, 39.18, -50.74)
CIE-LCHlch(48.20, 64.11, 307.67°)
OKLaboklab(56.97% 0.0754 -0.1435)
OKLCHoklch(56.97% 0.162 297.7)
XYZxyz(23.9701, 16.9510, 57.2560)
Luminance0.1695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845DC9 #A2C95D
analogous
#5D6CC9 #845DC9 #BA5DC9
triadic
#845DC9 #C9845D #5DC984
tetradic
#845DC9 #C95D6C #A2C95D #5DC9BA
square
#845DC9 #C95D6C #A2C95D #5DC9BA
split-complementary
#845DC9 #C9BA5D #6CC95D
monochromatic
#4A2B81 #643AAF #845DC9 #A78BD8 #CAB9E8

Accessibility & contrast

On white

4.78
#845DC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#845DC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #845DC9
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845DC9#FFFFFF#000000##FFFFFF
##845DC91.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3173CD
Deuteranopia (green-blind)
#3C71C6
Tritanopia (blue-blind)
#75738A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #845dc9;
/* rgb */ color: rgb(132, 93, 201);
/* oklch */ color: oklch(57.0% 0.162 297.7);
Tailwind
colors: {
  custom: {
    50: '#ab8cda',
    500: '#845dc9',
    950: '#000000',
  },
}
SCSS
$custom: #845dc9;
$custom-light: #ab8cda;
$custom-dark: #000000;
JSON
{
  "hex": "#845dc9",
  "rgb": {
    "r": 132,
    "g": 93,
    "b": 201
  },
  "hsl": {
    "h": 261.667,
    "s": 50,
    "l": 57.647
  },
  "oklch": {
    "l": 0.56975,
    "c": 0.16212,
    "h": 297.7
  },
  "luminance": 0.16951
}

Semantic roles & 50–950 ramp

primary
#845DC9
secondary
#C7D7AB
accent
#DA4EA7
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #845DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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