#845EF2#845EF2

#845EF2 is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 59.9% C 0.212 H 290.4°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#845EF2
RGBrgb(132, 94, 242)
HSLhsl(255, 85%, 66%)
HSVhsv(255, 61%, 95%)
CMYKcmyk(45.5%, 61.2%, 0%, 5.1%)
CIE-LABlab(51.06, 49.63, -69.37)
CIE-LCHlch(51.06, 85.30, 305.58°)
OKLaboklab(59.92% 0.0737 -0.1983)
OKLCHoklch(59.92% 0.212 290.4)
XYZxyz(29.5409, 19.3207, 86.1600)
Luminance0.1932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845EF2 #CCF25E
analogous
#5E82F2 #845EF2 #CE5EF2
triadic
#845EF2 #F2845E #5EF284
tetradic
#845EF2 #F25E82 #CCF25E #5EF2CE
square
#845EF2 #F25E82 #CCF25E #5EF2CE
split-complementary
#845EF2 #F2CE5E #82F25E
monochromatic
#3F10C6 #5925ED #845EF2 #AF97F7 #DBCFFB

Accessibility & contrast

On white

4.32
#845EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#845EF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #845EF2
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845EF2#FFFFFF#000000##000000
##845EF21.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF7
Deuteranopia (green-blind)
#0076EF
Tritanopia (blue-blind)
#62809F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #845ef2;
/* rgb */ color: rgb(132, 94, 242);
/* oklch */ color: oklch(59.9% 0.212 290.4);
Tailwind
colors: {
  custom: {
    50: '#af8df7',
    500: '#845ef2',
    950: '#000000',
  },
}
SCSS
$custom: #845ef2;
$custom-light: #af8df7;
$custom-dark: #000000;
JSON
{
  "hex": "#845ef2",
  "rgb": {
    "r": 132,
    "g": 94,
    "b": 242
  },
  "hsl": {
    "h": 255.405,
    "s": 85.057,
    "l": 65.882
  },
  "oklch": {
    "l": 0.5992,
    "c": 0.21152,
    "h": 290.4
  },
  "luminance": 0.19322
}

Semantic roles & 50–950 ramp

primary
#845EF2
secondary
#E2EEBD
accent
#E204A9
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #845EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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