#845EFB#845EFB

#845EFB is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.6% C 0.222 H 289.2°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#845EFB
RGBrgb(132, 94, 251)
HSLhsl(255, 95%, 68%)
HSVhsv(255, 63%, 98%)
CMYKcmyk(47.4%, 62.5%, 0%, 1.6%)
CIE-LABlab(51.70, 52.11, -73.35)
CIE-LCHlch(51.70, 89.98, 305.39°)
OKLaboklab(60.58% 0.073 -0.21)
OKLCHoklch(60.58% 0.222 289.2)
XYZxyz(30.9260, 19.8747, 93.4548)
Luminance0.1988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845EFB #D5FB5E
analogous
#5E87FB #845EFB #D25EFB
triadic
#845EFB #FB845E #5EFB84
tetradic
#845EFB #FB5E87 #D5FB5E #5EFBD2
square
#845EFB #FB5E87 #D5FB5E #5EFBD2
split-complementary
#845EFB #FBD25E #87FB5E
monochromatic
#3905D9 #5622FA #845EFB #B29AFC #DFD5FE

Accessibility & contrast

On white

4.22
#845EFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#845EFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #845EFB
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845EFB#FFFFFF#000000##000000
##845EFB1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFF
Deuteranopia (green-blind)
#0077F8
Tritanopia (blue-blind)
#5D83A4
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #845efb;
/* rgb */ color: rgb(132, 94, 251);
/* oklch */ color: oklch(60.6% 0.222 289.2);
Tailwind
colors: {
  custom: {
    50: '#b08dfe',
    500: '#845efb',
    950: '#000000',
  },
}
SCSS
$custom: #845efb;
$custom-light: #b08dfe;
$custom-dark: #000000;
JSON
{
  "hex": "#845efb",
  "rgb": {
    "r": 132,
    "g": 94,
    "b": 251
  },
  "hsl": {
    "h": 254.522,
    "s": 95.152,
    "l": 67.647
  },
  "oklch": {
    "l": 0.60582,
    "c": 0.22232,
    "h": 289.2
  },
  "luminance": 0.19876
}

Semantic roles & 50–950 ramp

primary
#845EFB
secondary
#E7F3C2
accent
#E600AE
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #845EFB

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

Preview Lab → · Contrast checker → · Palette generator →

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