#845DF2#845DF2

#845DF2 is a mid, highly saturated violet. Relative luminance 0.191; OKLCH L 59.8% C 0.213 H 290.6°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#845DF2
RGBrgb(132, 93, 242)
HSLhsl(256, 85%, 66%)
HSVhsv(256, 62%, 95%)
CMYKcmyk(45.5%, 61.6%, 0%, 5.1%)
CIE-LABlab(50.86, 50.18, -69.70)
CIE-LCHlch(50.86, 85.88, 305.75°)
OKLaboklab(59.77% 0.0747 -0.1993)
OKLCHoklch(59.77% 0.213 290.6)
XYZxyz(29.4526, 19.1440, 86.1305)
Luminance0.1915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845DF2 #CBF25D
analogous
#5D80F2 #845DF2 #CF5DF2
triadic
#845DF2 #F2845D #5DF284
tetradic
#845DF2 #F25D80 #CBF25D #5DF2CF
square
#845DF2 #F25D80 #CBF25D #5DF2CF
split-complementary
#845DF2 #F2CF5D #80F25D
monochromatic
#3F10C5 #5924ED #845DF2 #AF96F7 #DACEFB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##845DF2#FFFFFF#000000##000000
##845DF21.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)
#007CF7
Deuteranopia (green-blind)
#0076EF
Tritanopia (blue-blind)
#62809F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #845df2;
/* rgb */ color: rgb(132, 93, 242);
/* oklch */ color: oklch(59.8% 0.213 290.6);
Tailwind
colors: {
  custom: {
    50: '#af8df7',
    500: '#845df2',
    950: '#000000',
  },
}
SCSS
$custom: #845df2;
$custom-light: #af8df7;
$custom-dark: #000000;
JSON
{
  "hex": "#845df2",
  "rgb": {
    "r": 132,
    "g": 93,
    "b": 242
  },
  "hsl": {
    "h": 255.705,
    "s": 85.143,
    "l": 65.686
  },
  "oklch": {
    "l": 0.59771,
    "c": 0.2128,
    "h": 290.6
  },
  "luminance": 0.19145
}

Semantic roles & 50–950 ramp

primary
#845DF2
secondary
#E1EEBD
accent
#E204A8
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #845DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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