#845FE4#845FE4

#845FE4 is a mid, vivid violet. Relative luminance 0.187; OKLCH L 59.1% C 0.193 H 292.3°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#845FE4
RGBrgb(132, 95, 228)
HSLhsl(257, 71%, 63%)
HSVhsv(257, 58%, 89%)
CMYKcmyk(42.1%, 58.3%, 0%, 10.6%)
CIE-LABlab(50.32, 45.26, -62.70)
CIE-LCHlch(50.32, 77.33, 305.82°)
OKLaboklab(59.08% 0.0732 -0.1787)
OKLCHoklch(59.08% 0.193 292.3)
XYZxyz(27.6077, 18.6906, 75.5368)
Luminance0.1869 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845FE4 #BFE45F
analogous
#5F7CE4 #845FE4 #C75FE4
triadic
#845FE4 #E4845F #5FE484
tetradic
#845FE4 #E45F7C #BFE45F #5FE4C7
square
#845FE4 #E45F7C #BFE45F #5FE4C7
split-complementary
#845FE4 #E4C75F #7CE45F
monochromatic
#451DAC #5C2BDB #845FE4 #AC93ED #D5C8F6

Accessibility & contrast

On white

4.43
#845FE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#845FE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #845FE4
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845FE4#FFFFFF#000000##000000
##845FE41.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AE8
Deuteranopia (green-blind)
#1375E1
Tritanopia (blue-blind)
#697C98
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #845fe4;
/* rgb */ color: rgb(132, 95, 228);
/* oklch */ color: oklch(59.1% 0.193 292.3);
Tailwind
colors: {
  custom: {
    50: '#ae8eed',
    500: '#845fe4',
    950: '#000000',
  },
}
SCSS
$custom: #845fe4;
$custom-light: #ae8eed;
$custom-dark: #000000;
JSON
{
  "hex": "#845fe4",
  "rgb": {
    "r": 132,
    "g": 95,
    "b": 228
  },
  "hsl": {
    "h": 256.692,
    "s": 71.123,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59082,
    "c": 0.19309,
    "h": 292.3
  },
  "luminance": 0.18691
}

Semantic roles & 50–950 ramp

primary
#845FE4
secondary
#DAE7B8
accent
#D3129E
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #845FE4

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

Preview Lab → · Contrast checker → · Palette generator →

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