#845DEF#845DEF

#845DEF is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 59.6% C 0.209 H 291.0°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#845DEF
RGBrgb(132, 93, 239)
HSLhsl(256, 82%, 65%)
HSVhsv(256, 61%, 94%)
CMYKcmyk(44.8%, 61.1%, 0%, 6.3%)
CIE-LABlab(50.65, 49.36, -68.36)
CIE-LCHlch(50.65, 84.32, 305.83°)
OKLaboklab(59.55% 0.0749 -0.1953)
OKLCHoklch(59.55% 0.209 291)
XYZxyz(29.0057, 18.9652, 83.7770)
Luminance0.1897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845DEF #C8EF5D
analogous
#5D7FEF #845DEF #CD5DEF
triadic
#845DEF #EF845D #5DEF84
tetradic
#845DEF #EF5D7F #C8EF5D #5DEFCD
square
#845DEF #EF5D7F #C8EF5D #5DEFCD
split-complementary
#845DEF #EFCD5D #7FEF5D
monochromatic
#4113BF #5A25E9 #845DEF #AE95F5 #D9CCFA

Accessibility & contrast

On white

4.38
#845DEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#845DEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #845DEF
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845DEF#FFFFFF#000000##000000
##845DEF1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF4
Deuteranopia (green-blind)
#0075EC
Tritanopia (blue-blind)
#647F9D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #845def;
/* rgb */ color: rgb(132, 93, 239);
/* oklch */ color: oklch(59.6% 0.209 291.0);
Tailwind
colors: {
  custom: {
    50: '#af8df5',
    500: '#845def',
    950: '#000000',
  },
}
SCSS
$custom: #845def;
$custom-light: #af8df5;
$custom-dark: #000000;
JSON
{
  "hex": "#845def",
  "rgb": {
    "r": 132,
    "g": 93,
    "b": 239
  },
  "hsl": {
    "h": 256.027,
    "s": 82.022,
    "l": 65.098
  },
  "oklch": {
    "l": 0.59553,
    "c": 0.20918,
    "h": 291
  },
  "luminance": 0.18966
}

Semantic roles & 50–950 ramp

primary
#845DEF
secondary
#DFEDBB
accent
#DE07A5
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #845DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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