#845FF5#845FF5

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

Color values

HEX#845FF5
RGBrgb(132, 95, 245)
HSLhsl(255, 88%, 67%)
HSVhsv(255, 61%, 96%)
CMYKcmyk(46.1%, 61.2%, 0%, 3.9%)
CIE-LABlab(51.48, 49.91, -70.37)
CIE-LCHlch(51.48, 86.27, 305.35°)
OKLaboklab(60.29% 0.0724 -0.2012)
OKLCHoklch(60.29% 0.214 289.8)
XYZxyz(30.0847, 19.6814, 88.5822)
Luminance0.1968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845FF5 #D0F55F
analogous
#5F85F5 #845FF5 #CF5FF5
triadic
#845FF5 #F5845F #5FF584
tetradic
#845FF5 #F55F85 #D0F55F #5FF5CF
square
#845FF5 #F55F85 #D0F55F #5FF5CF
split-complementary
#845FF5 #F5CF5F #85F55F
monochromatic
#3C0DCD #5825F1 #845FF5 #B099F9 #DDD2FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##845FF5#FFFFFF#000000##000000
##845FF51.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)
#007EFA
Deuteranopia (green-blind)
#0077F2
Tritanopia (blue-blind)
#6082A1
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #845ff5;
/* rgb */ color: rgb(132, 95, 245);
/* oklch */ color: oklch(60.3% 0.214 289.8);
Tailwind
colors: {
  custom: {
    50: '#af8ef9',
    500: '#845ff5',
    950: '#000000',
  },
}
SCSS
$custom: #845ff5;
$custom-light: #af8ef9;
$custom-dark: #000000;
JSON
{
  "hex": "#845ff5",
  "rgb": {
    "r": 132,
    "g": 95,
    "b": 245
  },
  "hsl": {
    "h": 254.8,
    "s": 88.235,
    "l": 66.667
  },
  "oklch": {
    "l": 0.60289,
    "c": 0.21386,
    "h": 289.8
  },
  "luminance": 0.19683
}

Semantic roles & 50–950 ramp

primary
#845FF5
secondary
#E4F0C0
accent
#E501AD
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #845FF5

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

Preview Lab → · Contrast checker → · Palette generator →

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