#845EF8#845EF8

#845EF8 is a mid, highly saturated violet. Relative luminance 0.197; OKLCH L 60.4% C 0.219 H 289.6°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#845EF8
RGBrgb(132, 94, 248)
HSLhsl(255, 92%, 67%)
HSVhsv(255, 62%, 97%)
CMYKcmyk(46.8%, 62.1%, 0%, 2.7%)
CIE-LABlab(51.48, 51.28, -72.03)
CIE-LCHlch(51.48, 88.42, 305.45°)
OKLaboklab(60.36% 0.0732 -0.2061)
OKLCHoklch(60.36% 0.219 289.6)
XYZxyz(30.4569, 19.6871, 90.9839)
Luminance0.1969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845EF8 #D2F85E
analogous
#5E85F8 #845EF8 #D15EF8
triadic
#845EF8 #F8845E #5EF884
tetradic
#845EF8 #F85E85 #D2F85E #5EF8D1
square
#845EF8 #F85E85 #D2F85E #5EF8D1
split-complementary
#845EF8 #F8D15E #85F85E
monochromatic
#3B09D2 #5723F5 #845EF8 #B199FB #DED3FD

Accessibility & contrast

On white

4.25
#845EF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#845EF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #845EF8
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845EF8#FFFFFF#000000##000000
##845EF81.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFD
Deuteranopia (green-blind)
#0077F5
Tritanopia (blue-blind)
#5F82A2
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #845ef8;
/* rgb */ color: rgb(132, 94, 248);
/* oklch */ color: oklch(60.4% 0.219 289.6);
Tailwind
colors: {
  custom: {
    50: '#b08dfc',
    500: '#845ef8',
    950: '#000000',
  },
}
SCSS
$custom: #845ef8;
$custom-light: #b08dfc;
$custom-dark: #000000;
JSON
{
  "hex": "#845ef8",
  "rgb": {
    "r": 132,
    "g": 94,
    "b": 248
  },
  "hsl": {
    "h": 254.805,
    "s": 91.667,
    "l": 67.059
  },
  "oklch": {
    "l": 0.6036,
    "c": 0.21873,
    "h": 289.6
  },
  "luminance": 0.19688
}

Semantic roles & 50–950 ramp

primary
#845EF8
secondary
#E5F1C0
accent
#E600AD
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #845EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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