#845EA2#845EA2

#845EA2 is a mid, moderate violet. Relative luminance 0.155; OKLCH L 54.9% C 0.110 H 308.9°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#845EA2
RGBrgb(132, 94, 162)
HSLhsl(274, 27%, 50%)
HSVhsv(274, 42%, 64%)
CMYKcmyk(18.5%, 42%, 0%, 36.5%)
CIE-LABlab(46.34, 28.89, -30.96)
CIE-LCHlch(46.34, 42.35, 313.01°)
OKLaboklab(54.91% 0.0693 -0.0859)
OKLCHoklch(54.91% 0.11 308.9)
XYZxyz(20.0388, 15.5198, 36.1154)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845EA2 #7CA25E
analogous
#625EA2 #845EA2 #A25E9E
triadic
#845EA2 #A2845E #5EA284
tetradic
#845EA2 #A2625E #7CA25E #5E9EA2
square
#845EA2 #A2625E #7CA25E #5E9EA2
split-complementary
#845EA2 #9EA25E #5EA262
monochromatic
#453155 #64477B #845EA2 #A285B8 #BFACCF

Accessibility & contrast

On white

5.12
#845EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#845EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #845EA2
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845EA2#FFFFFF#000000##FFFFFF
##845EA21.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F6CA5
Deuteranopia (green-blind)
#586EA0
Tritanopia (blue-blind)
#806878
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #845ea2;
/* rgb */ color: rgb(132, 94, 162);
/* oklch */ color: oklch(54.9% 0.110 308.9);
Tailwind
colors: {
  custom: {
    50: '#a98cbe',
    500: '#845ea2',
    950: '#000000',
  },
}
SCSS
$custom: #845ea2;
$custom-light: #a98cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#845ea2",
  "rgb": {
    "r": 132,
    "g": 94,
    "b": 162
  },
  "hsl": {
    "h": 273.529,
    "s": 26.772,
    "l": 50.196
  },
  "oklch": {
    "l": 0.54908,
    "c": 0.11038,
    "h": 308.9
  },
  "luminance": 0.1552
}

Semantic roles & 50–950 ramp

primary
#845EA2
secondary
#ACBD9F
accent
#C3658E
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #845EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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