#845EFE#845EFE

#845EFE is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 60.8% C 0.226 H 288.8°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#845EFE
RGBrgb(132, 94, 254)
HSLhsl(254, 99%, 68%)
HSVhsv(254, 63%, 100%)
CMYKcmyk(48%, 63%, 0%, 0.4%)
CIE-LABlab(51.91, 52.94, -74.67)
CIE-LCHlch(51.91, 91.53, 305.34°)
OKLaboklab(60.81% 0.0727 -0.2139)
OKLCHoklch(60.81% 0.226 288.8)
XYZxyz(31.4027, 20.0654, 95.9651)
Luminance0.2007 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845EFE #D8FE5E
analogous
#5E88FE #845EFE #D45EFE
triadic
#845EFE #FE845E #5EFE84
tetradic
#845EFE #FE5E88 #D8FE5E #5EFED4
square
#845EFE #FE5E88 #D8FE5E #5EFED4
split-complementary
#845EFE #FED45E #88FE5E
monochromatic
#3601E0 #5621FE #845EFE #B29BFE #E1D8FF

Accessibility & contrast

On white

4.19
#845EFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#845EFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #845EFE
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845EFE#FFFFFF#000000##000000
##845EFE1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FFF
Deuteranopia (green-blind)
#0078FB
Tritanopia (blue-blind)
#5B84A6
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #845efe;
/* rgb */ color: rgb(132, 94, 254);
/* oklch */ color: oklch(60.8% 0.226 288.8);
Tailwind
colors: {
  custom: {
    50: '#b08eff',
    500: '#845efe',
    950: '#000000',
  },
}
SCSS
$custom: #845efe;
$custom-light: #b08eff;
$custom-dark: #000000;
JSON
{
  "hex": "#845efe",
  "rgb": {
    "r": 132,
    "g": 94,
    "b": 254
  },
  "hsl": {
    "h": 254.25,
    "s": 98.765,
    "l": 68.235
  },
  "oklch": {
    "l": 0.60806,
    "c": 0.22588,
    "h": 288.8
  },
  "luminance": 0.20067
}

Semantic roles & 50–950 ramp

primary
#845EFE
secondary
#E9F4C4
accent
#E600AF
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #845EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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