#845FBA#845FBA

#845FBA is a mid, vivid violet. Relative luminance 0.166; OKLCH L 56.4% C 0.140 H 300.8°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#845FBA
RGBrgb(132, 95, 186)
HSLhsl(264, 40%, 55%)
HSVhsv(264, 49%, 73%)
CMYKcmyk(29%, 48.9%, 0%, 27.1%)
CIE-LABlab(47.80, 34.17, -42.72)
CIE-LCHlch(47.80, 54.71, 308.66°)
OKLaboklab(56.4% 0.0715 -0.1201)
OKLCHoklch(56.4% 0.14 300.8)
XYZxyz(22.4688, 16.6350, 48.4720)
Luminance0.1663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#845FBA #95BA5F
analogous
#5F67BA #845FBA #B25FBA
triadic
#845FBA #BA845F #5FBA84
tetradic
#845FBA #BA5F67 #95BA5F #5FBAB2
square
#845FBA #BA5F67 #95BA5F #5FBAB2
split-complementary
#845FBA #BAB25F #67BA5F
monochromatic
#49306F #66429A #845FBA #A58ACC #C6B5DF

Accessibility & contrast

On white

4.85
#845FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#845FBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #845FBA
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##845FBA#FFFFFF#000000##FFFFFF
##845FBA1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4271BD
Deuteranopia (green-blind)
#4B71B8
Tritanopia (blue-blind)
#7A7084
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #845fba;
/* rgb */ color: rgb(132, 95, 186);
/* oklch */ color: oklch(56.4% 0.140 300.8);
Tailwind
colors: {
  custom: {
    50: '#aa8dcf',
    500: '#845fba',
    950: '#000000',
  },
}
SCSS
$custom: #845fba;
$custom-light: #aa8dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#845fba",
  "rgb": {
    "r": 132,
    "g": 95,
    "b": 186
  },
  "hsl": {
    "h": 264.396,
    "s": 39.738,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56401,
    "c": 0.13975,
    "h": 300.8
  },
  "luminance": 0.16635
}

Semantic roles & 50–950 ramp

primary
#845FBA
secondary
#BECDA7
accent
#D0589F
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100C14
muted
#7F7D82

Preview Lab

Preview with #845FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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