#845FF2#845FF2

#845FF2 is a mid, highly saturated violet. Relative luminance 0.195; OKLCH L 60.1% C 0.210 H 290.2°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#845FF2
RGBrgb(132, 95, 242)
HSLhsl(255, 85%, 66%)
HSVhsv(255, 61%, 95%)
CMYKcmyk(45.5%, 60.7%, 0%, 5.1%)
CIE-LABlab(51.27, 49.09, -69.03)
CIE-LCHlch(51.27, 84.70, 305.41°)
OKLaboklab(60.07% 0.0726 -0.1973)
OKLCHoklch(60.07% 0.21 290.2)
XYZxyz(29.6304, 19.4997, 86.1898)
Luminance0.1950 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845FF2 #CDF25F
analogous
#5F83F2 #845FF2 #CD5FF2
triadic
#845FF2 #F2845F #5FF284
tetradic
#845FF2 #F25F83 #CDF25F #5FF2CD
square
#845FF2 #F25F83 #CDF25F #5FF2CD
split-complementary
#845FF2 #F2CD5F #83F25F
monochromatic
#3E10C6 #5826ED #845FF2 #B098F7 #DBD0FB

Accessibility & contrast

On white

4.29
#845FF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#845FF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #845FF2
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845FF2#FFFFFF#000000##000000
##845FF21.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF7
Deuteranopia (green-blind)
#0077EF
Tritanopia (blue-blind)
#6281A0
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #845ff2;
/* rgb */ color: rgb(132, 95, 242);
/* oklch */ color: oklch(60.1% 0.210 290.2);
Tailwind
colors: {
  custom: {
    50: '#af8ef7',
    500: '#845ff2',
    950: '#000000',
  },
}
SCSS
$custom: #845ff2;
$custom-light: #af8ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#845ff2",
  "rgb": {
    "r": 132,
    "g": 95,
    "b": 242
  },
  "hsl": {
    "h": 255.102,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.60071,
    "c": 0.21023,
    "h": 290.2
  },
  "luminance": 0.19501
}

Semantic roles & 50–950 ramp

primary
#845FF2
secondary
#E2EFBE
accent
#E104AA
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #845FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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