#7845BC#7845BC

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

Color values

HEX#7845BC
RGBrgb(120, 69, 188)
HSLhsl(266, 47%, 50%)
HSVhsv(266, 63%, 74%)
CMYKcmyk(36.2%, 63.3%, 0%, 26.3%)
CIE-LABlab(41.02, 46.29, -54.80)
CIE-LCHlch(41.02, 71.74, 310.19°)
OKLaboklab(51.16% 0.0891 -0.1558)
OKLCHoklch(51.16% 0.179 299.8)
XYZxyz(18.9487, 11.8800, 48.8620)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845BC #89BC45
analogous
#454DBC #7845BC #B345BC
triadic
#7845BC #BC7845 #45BC78
tetradic
#7845BC #BC454D #89BC45 #45BCB3
square
#7845BC #BC454D #89BC45 #45BCB3
split-complementary
#7845BC #BCB345 #4DBC45
monochromatic
#3F2463 #5B3490 #7845BC #9972CC #B99FDC

Accessibility & contrast

On white

6.22
#7845BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7845BC
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845BC#FFFFFF#000000##FFFFFF
##7845BC1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C0
Deuteranopia (green-blind)
#1160B9
Tritanopia (blue-blind)
#695F7A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7845bc;
/* rgb */ color: rgb(120, 69, 188);
/* oklch */ color: oklch(51.2% 0.179 299.8);
Tailwind
colors: {
  custom: {
    50: '#a47bd1',
    500: '#7845bc',
    950: '#000000',
  },
}
SCSS
$custom: #7845bc;
$custom-light: #a47bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#7845bc",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 265.714,
    "s": 47.036,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51158,
    "c": 0.17948,
    "h": 299.8
  },
  "luminance": 0.1188
}

Semantic roles & 50–950 ramp

primary
#7845BC
secondary
#B2C994
accent
#D7519D
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7845BC

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

Preview Lab → · Contrast checker → · Palette generator →

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