#7845BD#7845BD

#7845BD is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.2% C 0.181 H 299.5°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#7845BD
RGBrgb(120, 69, 189)
HSLhsl(266, 48%, 51%)
HSVhsv(266, 63%, 74%)
CMYKcmyk(36.5%, 63.5%, 0%, 25.9%)
CIE-LABlab(41.09, 46.55, -55.28)
CIE-LCHlch(41.09, 72.27, 310.10°)
OKLaboklab(51.23% 0.089 -0.1572)
OKLCHoklch(51.23% 0.181 299.5)
XYZxyz(19.0569, 11.9232, 49.4317)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845BD #8ABD45
analogous
#454EBD #7845BD #B445BD
triadic
#7845BD #BD7845 #45BD78
tetradic
#7845BD #BD454E #8ABD45 #45BDB4
square
#7845BD #BD454E #8ABD45 #45BDB4
split-complementary
#7845BD #BDB445 #4EBD45
monochromatic
#3F2464 #5B3491 #7845BD #9972CD #BA9FDD

Accessibility & contrast

On white

6.20
#7845BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7845BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845BD
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845BD#FFFFFF#000000##FFFFFF
##7845BD1.006.203.386.20
#FFFFFF6.201.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C1
Deuteranopia (green-blind)
#0D60BA
Tritanopia (blue-blind)
#69607B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7845bd;
/* rgb */ color: rgb(120, 69, 189);
/* oklch */ color: oklch(51.2% 0.181 299.5);
Tailwind
colors: {
  custom: {
    50: '#a47bd2',
    500: '#7845bd',
    950: '#000000',
  },
}
SCSS
$custom: #7845bd;
$custom-light: #a47bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7845bd",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 189
  },
  "hsl": {
    "h": 265.5,
    "s": 47.619,
    "l": 50.588
  },
  "oklch": {
    "l": 0.5123,
    "c": 0.18065,
    "h": 299.5
  },
  "luminance": 0.11923
}

Semantic roles & 50–950 ramp

primary
#7845BD
secondary
#B3CA94
accent
#D7519E
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7845BD

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

Preview Lab → · Contrast checker → · Palette generator →

#7845BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva