#845DFB#845DFB

#845DFB is a mid, highly saturated violet. Relative luminance 0.197; OKLCH L 60.4% C 0.224 H 289.3°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#845DFB
RGBrgb(132, 93, 251)
HSLhsl(255, 95%, 67%)
HSVhsv(255, 63%, 98%)
CMYKcmyk(47.4%, 62.9%, 0%, 1.6%)
CIE-LABlab(51.49, 52.65, -73.68)
CIE-LCHlch(51.49, 90.56, 305.55°)
OKLaboklab(60.44% 0.074 -0.211)
OKLCHoklch(60.44% 0.224 289.3)
XYZxyz(30.8377, 19.6980, 93.4253)
Luminance0.1970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845DFB #D4FB5D
analogous
#5D85FB #845DFB #D35DFB
triadic
#845DFB #FB845D #5DFB84
tetradic
#845DFB #FB5D85 #D4FB5D #5DFBD3
square
#845DFB #FB5D85 #D4FB5D #5DFBD3
split-complementary
#845DFB #FBD35D #85FB5D
monochromatic
#3905D8 #5721FA #845DFB #B199FC #DFD4FE

Accessibility & contrast

On white

4.25
#845DFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#845DFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #845DFB
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845DFB#FFFFFF#000000##000000
##845DFB1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFF
Deuteranopia (green-blind)
#0077F8
Tritanopia (blue-blind)
#5D83A4
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #845dfb;
/* rgb */ color: rgb(132, 93, 251);
/* oklch */ color: oklch(60.4% 0.224 289.3);
Tailwind
colors: {
  custom: {
    50: '#b08dfe',
    500: '#845dfb',
    950: '#000000',
  },
}
SCSS
$custom: #845dfb;
$custom-light: #b08dfe;
$custom-dark: #000000;
JSON
{
  "hex": "#845dfb",
  "rgb": {
    "r": 132,
    "g": 93,
    "b": 251
  },
  "hsl": {
    "h": 254.81,
    "s": 95.181,
    "l": 67.451
  },
  "oklch": {
    "l": 0.60436,
    "c": 0.22355,
    "h": 289.3
  },
  "luminance": 0.19699
}

Semantic roles & 50–950 ramp

primary
#845DFB
secondary
#E6F3C1
accent
#E600AD
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #845DFB

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

Preview Lab → · Contrast checker → · Palette generator →

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