#845FFB#845FFB

#845FFB is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 60.7% C 0.221 H 289.0°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#845FFB
RGBrgb(132, 95, 251)
HSLhsl(254, 95%, 68%)
HSVhsv(254, 62%, 98%)
CMYKcmyk(47.4%, 62.2%, 0%, 1.6%)
CIE-LABlab(51.90, 51.57, -73.02)
CIE-LCHlch(51.90, 89.40, 305.23°)
OKLaboklab(60.73% 0.072 -0.209)
OKLCHoklch(60.73% 0.221 289)
XYZxyz(31.0155, 20.0537, 93.4846)
Luminance0.2006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845FFB #D6FB5F
analogous
#5F88FB #845FFB #D25FFB
triadic
#845FFB #FB845F #5FFB84
tetradic
#845FFB #FB5F88 #D6FB5F #5FFBD2
square
#845FFB #FB5F88 #D6FB5F #5FFBD2
split-complementary
#845FFB #FBD25F #88FB5F
monochromatic
#3805DA #5623FA #845FFB #B29BFC #E0D6FE

Accessibility & contrast

On white

4.19
#845FFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#845FFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #845FFB
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845FFB#FFFFFF#000000##000000
##845FFB1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FFF
Deuteranopia (green-blind)
#0078F8
Tritanopia (blue-blind)
#5D84A4
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #845ffb;
/* rgb */ color: rgb(132, 95, 251);
/* oklch */ color: oklch(60.7% 0.221 289.0);
Tailwind
colors: {
  custom: {
    50: '#b08efe',
    500: '#845ffb',
    950: '#000000',
  },
}
SCSS
$custom: #845ffb;
$custom-light: #b08efe;
$custom-dark: #000000;
JSON
{
  "hex": "#845ffb",
  "rgb": {
    "r": 132,
    "g": 95,
    "b": 251
  },
  "hsl": {
    "h": 254.231,
    "s": 95.122,
    "l": 67.843
  },
  "oklch": {
    "l": 0.60729,
    "c": 0.22107,
    "h": 289
  },
  "luminance": 0.20055
}

Semantic roles & 50–950 ramp

primary
#845FFB
secondary
#E8F3C3
accent
#E600AF
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #845FFB

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

Preview Lab → · Contrast checker → · Palette generator →

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