#845FEB#845FEB

#845FEB is a mid, highly saturated violet. Relative luminance 0.191; OKLCH L 59.6% C 0.202 H 291.2°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#845FEB
RGBrgb(132, 95, 235)
HSLhsl(256, 78%, 65%)
HSVhsv(256, 60%, 92%)
CMYKcmyk(43.8%, 59.6%, 0%, 7.8%)
CIE-LABlab(50.79, 47.17, -65.89)
CIE-LCHlch(50.79, 81.03, 305.60°)
OKLaboklab(59.57% 0.073 -0.188)
OKLCHoklch(59.57% 0.202 291.2)
XYZxyz(28.5992, 19.0872, 80.7585)
Luminance0.1909 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845FEB #C6EB5F
analogous
#5F80EB #845FEB #CA5FEB
triadic
#845FEB #EB845F #5FEB84
tetradic
#845FEB #EB5F80 #C6EB5F #5FEBCA
square
#845FEB #EB5F80 #C6EB5F #5FEBCA
split-complementary
#845FEB #EBCA5F #80EB5F
monochromatic
#4217B9 #5A29E4 #845FEB #AE95F2 #D8CCF9

Accessibility & contrast

On white

4.36
#845FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#845FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #845FEB
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845FEB#FFFFFF#000000##000000
##845FEB1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF0
Deuteranopia (green-blind)
#0076E8
Tritanopia (blue-blind)
#667F9C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #845feb;
/* rgb */ color: rgb(132, 95, 235);
/* oklch */ color: oklch(59.6% 0.202 291.2);
Tailwind
colors: {
  custom: {
    50: '#ae8ef2',
    500: '#845feb',
    950: '#000000',
  },
}
SCSS
$custom: #845feb;
$custom-light: #ae8ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#845feb",
  "rgb": {
    "r": 132,
    "g": 95,
    "b": 235
  },
  "hsl": {
    "h": 255.857,
    "s": 77.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.59571,
    "c": 0.20171,
    "h": 291.2
  },
  "luminance": 0.19088
}

Semantic roles & 50–950 ramp

primary
#845FEB
secondary
#DEEBBB
accent
#DA0BA3
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #845FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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