#845BF8#845BF8

#845BF8 is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 59.9% C 0.222 H 290.0°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#845BF8
RGBrgb(132, 91, 248)
HSLhsl(256, 92%, 66%)
HSVhsv(256, 63%, 97%)
CMYKcmyk(46.8%, 63.3%, 0%, 2.7%)
CIE-LABlab(50.88, 52.90, -73.01)
CIE-LCHlch(50.88, 90.16, 305.93°)
OKLaboklab(59.92% 0.0762 -0.209)
OKLCHoklch(59.92% 0.222 290)
XYZxyz(30.1953, 19.1639, 90.8967)
Luminance0.1916 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845BF8 #CFF85B
analogous
#5B81F8 #845BF8 #D35BF8
triadic
#845BF8 #F8845B #5BF884
tetradic
#845BF8 #F85B81 #CFF85B #5BF8D3
square
#845BF8 #F85B81 #CFF85B #5BF8D3
split-complementary
#845BF8 #F8D35B #81F85B
monochromatic
#3D09D0 #5820F5 #845BF8 #B096FB #DCD0FD

Accessibility & contrast

On white

4.35
#845BF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#845BF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #845BF8
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845BF8#FFFFFF#000000##000000
##845BF81.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFD
Deuteranopia (green-blind)
#0075F5
Tritanopia (blue-blind)
#5F81A1
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #845bf8;
/* rgb */ color: rgb(132, 91, 248);
/* oklch */ color: oklch(59.9% 0.222 290.0);
Tailwind
colors: {
  custom: {
    50: '#b08bfc',
    500: '#845bf8',
    950: '#000000',
  },
}
SCSS
$custom: #845bf8;
$custom-light: #b08bfc;
$custom-dark: #000000;
JSON
{
  "hex": "#845bf8",
  "rgb": {
    "r": 132,
    "g": 91,
    "b": 248
  },
  "hsl": {
    "h": 255.669,
    "s": 91.813,
    "l": 66.471
  },
  "oklch": {
    "l": 0.59922,
    "c": 0.22246,
    "h": 290
  },
  "luminance": 0.19165
}

Semantic roles & 50–950 ramp

primary
#845BF8
secondary
#E4F1BE
accent
#E600AA
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #845BF8

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

Preview Lab → · Contrast checker → · Palette generator →

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