#845D98#845D98

#845D98 is a mid, moderate violet. Relative luminance 0.150; OKLCH L 54.2% C 0.100 H 313.6°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#845D98
RGBrgb(132, 93, 152)
HSLhsl(280, 24%, 48%)
HSVhsv(280, 39%, 60%)
CMYKcmyk(13.2%, 38.8%, 0%, 40.4%)
CIE-LABlab(45.64, 27.17, -26.13)
CIE-LCHlch(45.64, 37.70, 316.12°)
OKLaboklab(54.23% 0.0687 -0.072)
OKLCHoklch(54.23% 0.1 313.6)
XYZxyz(19.0966, 15.0016, 31.5893)
Luminance0.1500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845D98 #71985D
analogous
#665D98 #845D98 #985D8E
triadic
#845D98 #98845D #5D9884
tetradic
#845D98 #98665D #71985D #5D8E98
square
#845D98 #98665D #71985D #5D8E98
split-complementary
#845D98 #8E985D #5D9866
monochromatic
#422F4C #634672 #845D98 #A181B2 #BDA7C9

Accessibility & contrast

On white

5.25
#845D98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#845D98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #845D98
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845D98#FFFFFF#000000##FFFFFF
##845D981.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#536A9A
Deuteranopia (green-blind)
#5C6D96
Tritanopia (blue-blind)
#836573
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #845d98;
/* rgb */ color: rgb(132, 93, 152);
/* oklch */ color: oklch(54.2% 0.100 313.6);
Tailwind
colors: {
  custom: {
    50: '#a98bb6',
    500: '#845d98',
    950: '#000000',
  },
}
SCSS
$custom: #845d98;
$custom-light: #a98bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#845d98",
  "rgb": {
    "r": 132,
    "g": 93,
    "b": 152
  },
  "hsl": {
    "h": 279.661,
    "s": 24.082,
    "l": 48.039
  },
  "oklch": {
    "l": 0.54226,
    "c": 0.09952,
    "h": 313.6
  },
  "luminance": 0.15001
}

Semantic roles & 50–950 ramp

primary
#845D98
secondary
#A4B79A
accent
#C16786
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100C11
muted
#7F7D80

Preview Lab

Preview with #845D98

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

Preview Lab → · Contrast checker → · Palette generator →

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