#845EF6#845EF6

#845EF6 is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 60.2% C 0.216 H 289.8°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#845EF6
RGBrgb(132, 94, 246)
HSLhsl(255, 89%, 67%)
HSVhsv(255, 62%, 96%)
CMYKcmyk(46.3%, 61.8%, 0%, 3.5%)
CIE-LABlab(51.34, 50.73, -71.15)
CIE-LCHlch(51.34, 87.38, 305.49°)
OKLaboklab(60.21% 0.0734 -0.2035)
OKLCHoklch(60.21% 0.216 289.8)
XYZxyz(30.1482, 19.5636, 89.3586)
Luminance0.1956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845EF6 #D0F65E
analogous
#5E84F6 #845EF6 #D05EF6
triadic
#845EF6 #F6845E #5EF684
tetradic
#845EF6 #F65E84 #D0F65E #5EF6D0
square
#845EF6 #F65E84 #D0F65E #5EF6D0
split-complementary
#845EF6 #F6D05E #84F65E
monochromatic
#3C0CCE #5824F3 #845EF6 #B098F9 #DDD2FC

Accessibility & contrast

On white

4.27
#845EF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#845EF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #845EF6
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845EF6#FFFFFF#000000##000000
##845EF61.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFB
Deuteranopia (green-blind)
#0077F3
Tritanopia (blue-blind)
#6082A1
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #845ef6;
/* rgb */ color: rgb(132, 94, 246);
/* oklch */ color: oklch(60.2% 0.216 289.8);
Tailwind
colors: {
  custom: {
    50: '#b08dfa',
    500: '#845ef6',
    950: '#000000',
  },
}
SCSS
$custom: #845ef6;
$custom-light: #b08dfa;
$custom-dark: #000000;
JSON
{
  "hex": "#845ef6",
  "rgb": {
    "r": 132,
    "g": 94,
    "b": 246
  },
  "hsl": {
    "h": 255,
    "s": 89.412,
    "l": 66.667
  },
  "oklch": {
    "l": 0.60212,
    "c": 0.21634,
    "h": 289.8
  },
  "luminance": 0.19565
}

Semantic roles & 50–950 ramp

primary
#845EF6
secondary
#E4F0BF
accent
#E600AC
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #845EF6

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

Preview Lab → · Contrast checker → · Palette generator →

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