#845EF7#845EF7

#845EF7 is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 60.3% C 0.218 H 289.7°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#845EF7
RGBrgb(132, 94, 247)
HSLhsl(255, 91%, 67%)
HSVhsv(255, 62%, 97%)
CMYKcmyk(46.6%, 61.9%, 0%, 3.1%)
CIE-LABlab(51.41, 51.01, -71.59)
CIE-LCHlch(51.41, 87.90, 305.47°)
OKLaboklab(60.29% 0.0733 -0.2048)
OKLCHoklch(60.29% 0.218 289.7)
XYZxyz(30.3021, 19.6252, 90.1691)
Luminance0.1963 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845EF7 #D1F75E
analogous
#5E85F7 #845EF7 #D15EF7
triadic
#845EF7 #F7845E #5EF784
tetradic
#845EF7 #F75E85 #D1F75E #5EF7D1
square
#845EF7 #F75E85 #D1F75E #5EF7D1
split-complementary
#845EF7 #F7D15E #85F75E
monochromatic
#3C0AD0 #5724F4 #845EF7 #B198FA #DDD3FD

Accessibility & contrast

On white

4.26
#845EF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#845EF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #845EF7
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845EF7#FFFFFF#000000##000000
##845EF71.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFC
Deuteranopia (green-blind)
#0077F4
Tritanopia (blue-blind)
#5F82A2
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #845ef7;
/* rgb */ color: rgb(132, 94, 247);
/* oklch */ color: oklch(60.3% 0.218 289.7);
Tailwind
colors: {
  custom: {
    50: '#b08dfb',
    500: '#845ef7',
    950: '#000000',
  },
}
SCSS
$custom: #845ef7;
$custom-light: #b08dfb;
$custom-dark: #000000;
JSON
{
  "hex": "#845ef7",
  "rgb": {
    "r": 132,
    "g": 94,
    "b": 247
  },
  "hsl": {
    "h": 254.902,
    "s": 90.533,
    "l": 66.863
  },
  "oklch": {
    "l": 0.60286,
    "c": 0.21753,
    "h": 289.7
  },
  "luminance": 0.19626
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #845EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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