#845DE7#845DE7

#845DE7 is a mid, vivid violet. Relative luminance 0.185; OKLCH L 59.0% C 0.199 H 292.2°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#845DE7
RGBrgb(132, 93, 231)
HSLhsl(257, 74%, 64%)
HSVhsv(257, 60%, 91%)
CMYKcmyk(42.9%, 59.7%, 0%, 9.4%)
CIE-LABlab(50.10, 47.18, -64.75)
CIE-LCHlch(50.10, 80.12, 306.08°)
OKLaboklab(58.98% 0.0753 -0.1847)
OKLCHoklch(58.98% 0.199 292.2)
XYZxyz(27.8499, 18.5029, 77.6899)
Luminance0.1850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845DE7 #C0E75D
analogous
#5D7BE7 #845DE7 #C95DE7
triadic
#845DE7 #E7845D #5DE784
tetradic
#845DE7 #E75D7B #C0E75D #5DE7C9
square
#845DE7 #E75D7B #C0E75D #5DE7C9
split-complementary
#845DE7 #E7C95D #7BE75D
monochromatic
#441AB0 #5C28DF #845DE7 #AC92EF #D5C8F7

Accessibility & contrast

On white

4.47
#845DE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#845DE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #845DE7
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845DE7#FFFFFF#000000##000000
##845DE71.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EB
Deuteranopia (green-blind)
#0074E4
Tritanopia (blue-blind)
#687C99
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #845de7;
/* rgb */ color: rgb(132, 93, 231);
/* oklch */ color: oklch(59.0% 0.199 292.2);
Tailwind
colors: {
  custom: {
    50: '#ae8cef',
    500: '#845de7',
    950: '#000000',
  },
}
SCSS
$custom: #845de7;
$custom-light: #ae8cef;
$custom-dark: #000000;
JSON
{
  "hex": "#845de7",
  "rgb": {
    "r": 132,
    "g": 93,
    "b": 231
  },
  "hsl": {
    "h": 256.957,
    "s": 74.194,
    "l": 63.529
  },
  "oklch": {
    "l": 0.58982,
    "c": 0.19947,
    "h": 292.2
  },
  "luminance": 0.18504
}

Semantic roles & 50–950 ramp

primary
#845DE7
secondary
#DBE8B7
accent
#D60F9E
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #845DE7

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

Preview Lab → · Contrast checker → · Palette generator →

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