#845FE7#845FE7

#845FE7 is a mid, vivid violet. Relative luminance 0.189; OKLCH L 59.3% C 0.197 H 291.8°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#845FE7
RGBrgb(132, 95, 231)
HSLhsl(256, 74%, 64%)
HSVhsv(256, 59%, 91%)
CMYKcmyk(42.9%, 58.9%, 0%, 9.4%)
CIE-LABlab(50.52, 46.07, -64.07)
CIE-LCHlch(50.52, 78.92, 305.72°)
OKLaboklab(59.29% 0.0731 -0.1827)
OKLCHoklch(59.29% 0.197 291.8)
XYZxyz(28.0278, 18.8586, 77.7491)
Luminance0.1886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845FE7 #C2E75F
analogous
#5F7EE7 #845FE7 #C85FE7
triadic
#845FE7 #E7845F #5FE784
tetradic
#845FE7 #E75F7E #C2E75F #5FE7C8
square
#845FE7 #E75F7E #C2E75F #5FE7C8
split-complementary
#845FE7 #E7C85F #7EE75F
monochromatic
#431BB1 #5B2ADF #845FE7 #AD94EF #D6C9F7

Accessibility & contrast

On white

4.40
#845FE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#845FE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #845FE7
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845FE7#FFFFFF#000000##000000
##845FE71.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEB
Deuteranopia (green-blind)
#0475E4
Tritanopia (blue-blind)
#687D9A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #845fe7;
/* rgb */ color: rgb(132, 95, 231);
/* oklch */ color: oklch(59.3% 0.197 291.8);
Tailwind
colors: {
  custom: {
    50: '#ae8eef',
    500: '#845fe7',
    950: '#000000',
  },
}
SCSS
$custom: #845fe7;
$custom-light: #ae8eef;
$custom-dark: #000000;
JSON
{
  "hex": "#845fe7",
  "rgb": {
    "r": 132,
    "g": 95,
    "b": 231
  },
  "hsl": {
    "h": 256.324,
    "s": 73.913,
    "l": 63.922
  },
  "oklch": {
    "l": 0.5929,
    "c": 0.19679,
    "h": 291.8
  },
  "luminance": 0.18859
}

Semantic roles & 50–950 ramp

primary
#845FE7
secondary
#DCE9B9
accent
#D60FA0
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #845FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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