#845BF6#845BF6

#845BF6 is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 59.8% C 0.220 H 290.3°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#845BF6
RGBrgb(132, 91, 246)
HSLhsl(256, 90%, 66%)
HSVhsv(256, 63%, 96%)
CMYKcmyk(46.3%, 63%, 0%, 3.5%)
CIE-LABlab(50.73, 52.35, -72.13)
CIE-LCHlch(50.73, 89.13, 305.97°)
OKLaboklab(59.77% 0.0764 -0.2064)
OKLCHoklch(59.77% 0.22 290.3)
XYZxyz(29.8866, 19.0404, 89.2714)
Luminance0.1904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845BF6 #CDF65B
analogous
#5B7FF6 #845BF6 #D15BF6
triadic
#845BF6 #F6845B #5BF684
tetradic
#845BF6 #F65B7F #CDF65B #5BF6D1
square
#845BF6 #F65B7F #CDF65B #5BF6D1
split-complementary
#845BF6 #F6D15B #7FF65B
monochromatic
#3E0BCB #5821F3 #845BF6 #B095F9 #DBCFFC

Accessibility & contrast

On white

4.37
#845BF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#845BF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #845BF6
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845BF6#FFFFFF#000000##000000
##845BF61.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFB
Deuteranopia (green-blind)
#0075F3
Tritanopia (blue-blind)
#6080A0
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #845bf6;
/* rgb */ color: rgb(132, 91, 246);
/* oklch */ color: oklch(59.8% 0.220 290.3);
Tailwind
colors: {
  custom: {
    50: '#b08bfa',
    500: '#845bf6',
    950: '#000000',
  },
}
SCSS
$custom: #845bf6;
$custom-light: #b08bfa;
$custom-dark: #000000;
JSON
{
  "hex": "#845bf6",
  "rgb": {
    "r": 132,
    "g": 91,
    "b": 246
  },
  "hsl": {
    "h": 255.871,
    "s": 89.595,
    "l": 66.078
  },
  "oklch": {
    "l": 0.59773,
    "c": 0.22009,
    "h": 290.3
  },
  "luminance": 0.19042
}

Semantic roles & 50–950 ramp

primary
#845BF6
secondary
#E2F0BD
accent
#E600A9
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #845BF6

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

Preview Lab → · Contrast checker → · Palette generator →

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