#845BF2#845BF2

#845BF2 is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.5% C 0.215 H 290.9°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#845BF2
RGBrgb(132, 91, 242)
HSLhsl(256, 85%, 65%)
HSVhsv(256, 62%, 95%)
CMYKcmyk(45.5%, 62.4%, 0%, 5.1%)
CIE-LABlab(50.45, 51.26, -70.36)
CIE-LCHlch(50.45, 87.05, 306.08°)
OKLaboklab(59.48% 0.0768 -0.2012)
OKLCHoklch(59.48% 0.215 290.9)
XYZxyz(29.2793, 18.7975, 86.0728)
Luminance0.1880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845BF2 #C9F25B
analogous
#5B7EF2 #845BF2 #CF5BF2
triadic
#845BF2 #F2845B #5BF284
tetradic
#845BF2 #F25B7E #C9F25B #5BF2CF
square
#845BF2 #F25B7E #C9F25B #5BF2CF
split-complementary
#845BF2 #F2CF5B #7EF25B
monochromatic
#400FC3 #5922EE #845BF2 #AF94F6 #D9CCFB

Accessibility & contrast

On white

4.41
#845BF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#845BF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #845BF2
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845BF2#FFFFFF#000000##000000
##845BF21.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF7
Deuteranopia (green-blind)
#0075EF
Tritanopia (blue-blind)
#627E9E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #845bf2;
/* rgb */ color: rgb(132, 91, 242);
/* oklch */ color: oklch(59.5% 0.215 290.9);
Tailwind
colors: {
  custom: {
    50: '#af8bf7',
    500: '#845bf2',
    950: '#000000',
  },
}
SCSS
$custom: #845bf2;
$custom-light: #af8bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#845bf2",
  "rgb": {
    "r": 132,
    "g": 91,
    "b": 242
  },
  "hsl": {
    "h": 256.291,
    "s": 85.311,
    "l": 65.294
  },
  "oklch": {
    "l": 0.59476,
    "c": 0.21534,
    "h": 290.9
  },
  "luminance": 0.18799
}

Semantic roles & 50–950 ramp

primary
#845BF2
secondary
#E0EEBB
accent
#E204A5
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #845BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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