#845CEB#845CEB

#845CEB is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 59.1% C 0.206 H 291.8°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#845CEB
RGBrgb(132, 92, 235)
HSLhsl(257, 78%, 64%)
HSVhsv(257, 61%, 92%)
CMYKcmyk(43.8%, 60.9%, 0%, 7.8%)
CIE-LABlab(50.16, 48.82, -66.90)
CIE-LCHlch(50.16, 82.81, 306.12°)
OKLaboklab(59.11% 0.0762 -0.191)
OKLCHoklch(59.11% 0.206 291.8)
XYZxyz(28.3341, 18.5571, 80.6701)
Luminance0.1856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845CEB #C3EB5C
analogous
#5C7CEB #845CEB #CB5CEB
triadic
#845CEB #EB845C #5CEB84
tetradic
#845CEB #EB5C7C #C3EB5C #5CEBCB
square
#845CEB #EB5C7C #C3EB5C #5CEBCB
split-complementary
#845CEB #EBCB5C #7CEB5C
monochromatic
#4316B6 #5B25E4 #845CEB #AD93F2 #D6C9F8

Accessibility & contrast

On white

4.46
#845CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#845CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #845CEB
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845CEB#FFFFFF#000000##000000
##845CEB1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF0
Deuteranopia (green-blind)
#0074E8
Tritanopia (blue-blind)
#667D9B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #845ceb;
/* rgb */ color: rgb(132, 92, 235);
/* oklch */ color: oklch(59.1% 0.206 291.8);
Tailwind
colors: {
  custom: {
    50: '#af8cf2',
    500: '#845ceb',
    950: '#000000',
  },
}
SCSS
$custom: #845ceb;
$custom-light: #af8cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#845ceb",
  "rgb": {
    "r": 132,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 256.783,
    "s": 78.142,
    "l": 64.118
  },
  "oklch": {
    "l": 0.59115,
    "c": 0.20566,
    "h": 291.8
  },
  "luminance": 0.18558
}

Semantic roles & 50–950 ramp

primary
#845CEB
secondary
#DCEAB8
accent
#DA0BA0
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #845CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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