#845AF7#845AF7

#845AF7 is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 59.7% C 0.223 H 290.3°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#845AF7
RGBrgb(132, 90, 247)
HSLhsl(256, 91%, 66%)
HSVhsv(256, 64%, 97%)
CMYKcmyk(46.6%, 63.6%, 0%, 3.1%)
CIE-LABlab(50.61, 53.16, -72.89)
CIE-LCHlch(50.61, 90.22, 306.10°)
OKLaboklab(59.7% 0.0773 -0.2086)
OKLCHoklch(59.7% 0.223 290.3)
XYZxyz(29.9556, 18.9321, 90.0536)
Luminance0.1893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845AF7 #CDF75A
analogous
#5A7EF7 #845AF7 #D25AF7
triadic
#845AF7 #F7845A #5AF784
tetradic
#845AF7 #F75A7E #CDF75A #5AF7D2
square
#845AF7 #F75A7E #CDF75A #5AF7D2
split-complementary
#845AF7 #F7D25A #7EF75A
monochromatic
#3E0ACD #5820F4 #845AF7 #B094FA #DBCFFD

Accessibility & contrast

On white

4.39
#845AF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#845AF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #845AF7
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845AF7#FFFFFF#000000##000000
##845AF71.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BFC
Deuteranopia (green-blind)
#0075F4
Tritanopia (blue-blind)
#5F80A1
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #845af7;
/* rgb */ color: rgb(132, 90, 247);
/* oklch */ color: oklch(59.7% 0.223 290.3);
Tailwind
colors: {
  custom: {
    50: '#b08bfb',
    500: '#845af7',
    950: '#000000',
  },
}
SCSS
$custom: #845af7;
$custom-light: #b08bfb;
$custom-dark: #000000;
JSON
{
  "hex": "#845af7",
  "rgb": {
    "r": 132,
    "g": 90,
    "b": 247
  },
  "hsl": {
    "h": 256.051,
    "s": 90.751,
    "l": 66.078
  },
  "oklch": {
    "l": 0.59704,
    "c": 0.22252,
    "h": 290.3
  },
  "luminance": 0.18933
}

Semantic roles & 50–950 ramp

primary
#845AF7
secondary
#E2F0BD
accent
#E600A8
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #845AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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