#845CA6#845CA6

#845CA6 is a mid, moderate violet. Relative luminance 0.153; OKLCH L 54.8% C 0.119 H 307.8°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#845CA6
RGBrgb(132, 92, 166)
HSLhsl(272, 29%, 51%)
HSVhsv(272, 45%, 65%)
CMYKcmyk(20.5%, 44.6%, 0%, 34.9%)
CIE-LABlab(46.06, 31.00, -33.76)
CIE-LCHlch(46.06, 45.84, 312.56°)
OKLaboklab(54.76% 0.073 -0.094)
OKLCHoklch(54.76% 0.119 307.8)
XYZxyz(20.2245, 15.3132, 37.9593)
Luminance0.1531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845CA6 #7EA65C
analogous
#5F5CA6 #845CA6 #A65CA3
triadic
#845CA6 #A6845C #5CA684
tetradic
#845CA6 #A65F5C #7EA65C #5CA3A6
square
#845CA6 #A65F5C #7EA65C #5CA3A6
split-complementary
#845CA6 #A3A65C #5CA65F
monochromatic
#453058 #65467F #845CA6 #A284BC #C0ABD1

Accessibility & contrast

On white

5.17
#845CA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#845CA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #845CA6
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845CA6#FFFFFF#000000##FFFFFF
##845CA61.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B6BA9
Deuteranopia (green-blind)
#556EA4
Tritanopia (blue-blind)
#7F6879
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #845ca6;
/* rgb */ color: rgb(132, 92, 166);
/* oklch */ color: oklch(54.8% 0.119 307.8);
Tailwind
colors: {
  custom: {
    50: '#a98bc1',
    500: '#845ca6',
    950: '#000000',
  },
}
SCSS
$custom: #845ca6;
$custom-light: #a98bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#845ca6",
  "rgb": {
    "r": 132,
    "g": 92,
    "b": 166
  },
  "hsl": {
    "h": 272.432,
    "s": 29.365,
    "l": 50.588
  },
  "oklch": {
    "l": 0.54762,
    "c": 0.11902,
    "h": 307.8
  },
  "luminance": 0.15313
}

Semantic roles & 50–950 ramp

primary
#845CA6
secondary
#AEBF9E
accent
#C66290
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #845CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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