#845097#845097

#845097 is a mid, vivid purple. Relative luminance 0.129; OKLCH L 51.9% C 0.122 H 316.5°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#845097
RGBrgb(132, 80, 151)
HSLhsl(284, 31%, 45%)
HSVhsv(284, 47%, 59%)
CMYKcmyk(12.6%, 47%, 0%, 40.8%)
CIE-LABlab(42.58, 34.48, -30.31)
CIE-LCHlch(42.58, 45.90, 318.68°)
OKLaboklab(51.92% 0.0884 -0.0839)
OKLCHoklch(51.92% 0.122 316.5)
XYZxyz(17.9695, 12.8777, 30.8112)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845097 #639750
analogous
#615097 #845097 #975086
triadic
#845097 #978450 #509784
tetradic
#845097 #976150 #639750 #508697
square
#845097 #976150 #639750 #508697
split-complementary
#845097 #869750 #509761
monochromatic
#3E2647 #613B6F #845097 #A271B4 #BC99C9

Accessibility & contrast

On white

5.87
#845097 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#845097 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #845097
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845097#FFFFFF#000000##FFFFFF
##8450971.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#436199
Deuteranopia (green-blind)
#516695
Tritanopia (blue-blind)
#835A6C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #845097;
/* rgb */ color: rgb(132, 80, 151);
/* oklch */ color: oklch(51.9% 0.122 316.5);
Tailwind
colors: {
  custom: {
    50: '#a982b6',
    500: '#845097',
    950: '#000000',
  },
}
SCSS
$custom: #845097;
$custom-light: #a982b6;
$custom-dark: #000000;
JSON
{
  "hex": "#845097",
  "rgb": {
    "r": 132,
    "g": 80,
    "b": 151
  },
  "hsl": {
    "h": 283.944,
    "s": 30.736,
    "l": 45.294
  },
  "oklch": {
    "l": 0.51916,
    "c": 0.12191,
    "h": 316.5
  },
  "luminance": 0.12877
}

Semantic roles & 50–950 ramp

primary
#845097
secondary
#98B68D
accent
#C7617C
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#100B11
muted
#7F7C80

Preview Lab

Preview with #845097

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

Preview Lab → · Contrast checker → · Palette generator →

#845097 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva