#845B98#845B98

#845B98 is a mid, moderate purple. Relative luminance 0.147; OKLCH L 53.9% C 0.103 H 314.1°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#845B98
RGBrgb(132, 91, 152)
HSLhsl(280, 25%, 48%)
HSVhsv(280, 40%, 60%)
CMYKcmyk(13.2%, 40.1%, 0%, 40.4%)
CIE-LABlab(45.16, 28.35, -26.87)
CIE-LCHlch(45.16, 39.06, 316.53°)
OKLaboklab(53.86% 0.0718 -0.0741)
OKLCHoklch(53.86% 0.103 314.1)
XYZxyz(18.9234, 14.6551, 31.5315)
Luminance0.1466 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845B98 #6F985B
analogous
#655B98 #845B98 #985B8D
triadic
#845B98 #98845B #5B9884
tetradic
#845B98 #98655B #6F985B #5B8D98
square
#845B98 #98655B #6F985B #5B8D98
split-complementary
#845B98 #8D985B #5B9865
monochromatic
#422D4B #634472 #845B98 #A17EB2 #BDA5C9

Accessibility & contrast

On white

5.34
#845B98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#845B98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #845B98
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845B98#FFFFFF#000000##FFFFFF
##845B981.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#50689A
Deuteranopia (green-blind)
#5A6C96
Tritanopia (blue-blind)
#836372
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #845b98;
/* rgb */ color: rgb(132, 91, 152);
/* oklch */ color: oklch(53.9% 0.103 314.1);
Tailwind
colors: {
  custom: {
    50: '#a98ab6',
    500: '#845b98',
    950: '#000000',
  },
}
SCSS
$custom: #845b98;
$custom-light: #a98ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#845b98",
  "rgb": {
    "r": 132,
    "g": 91,
    "b": 152
  },
  "hsl": {
    "h": 280.328,
    "s": 25.103,
    "l": 47.647
  },
  "oklch": {
    "l": 0.53865,
    "c": 0.10319,
    "h": 314.1
  },
  "luminance": 0.14655
}

Semantic roles & 50–950 ramp

primary
#845B98
secondary
#A2B798
accent
#C26684
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100C11
muted
#7F7D80

Preview Lab

Preview with #845B98

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

Preview Lab → · Contrast checker → · Palette generator →

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