#7845BB#7845BB

#7845BB is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.1% C 0.178 H 300.0°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#7845BB
RGBrgb(120, 69, 187)
HSLhsl(266, 46%, 50%)
HSVhsv(266, 63%, 73%)
CMYKcmyk(35.8%, 63.1%, 0%, 26.7%)
CIE-LABlab(40.96, 46.04, -54.33)
CIE-LCHlch(40.96, 71.21, 310.28°)
OKLaboklab(51.09% 0.0891 -0.1544)
OKLCHoklch(51.09% 0.178 300)
XYZxyz(18.8413, 11.8370, 48.2962)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845BB #88BB45
analogous
#454DBB #7845BB #B345BB
triadic
#7845BB #BB7845 #45BB78
tetradic
#7845BB #BB454D #88BB45 #45BBB3
square
#7845BB #BB454D #88BB45 #45BBB3
split-complementary
#7845BB #BBB345 #4DBB45
monochromatic
#3F2462 #5B348F #7845BB #9972CB #B99FDC

Accessibility & contrast

On white

6.24
#7845BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7845BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845BB
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845BB#FFFFFF#000000##FFFFFF
##7845BB1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BF
Deuteranopia (green-blind)
#1460B8
Tritanopia (blue-blind)
#695F7A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7845bb;
/* rgb */ color: rgb(120, 69, 187);
/* oklch */ color: oklch(51.1% 0.178 300.0);
Tailwind
colors: {
  custom: {
    50: '#a47bd0',
    500: '#7845bb',
    950: '#000000',
  },
}
SCSS
$custom: #7845bb;
$custom-light: #a47bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7845bb",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 187
  },
  "hsl": {
    "h": 265.932,
    "s": 46.457,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51086,
    "c": 0.1783,
    "h": 300
  },
  "luminance": 0.11837
}

Semantic roles & 50–950 ramp

primary
#7845BB
secondary
#B1C894
accent
#D6529D
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7845BB

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

Preview Lab → · Contrast checker → · Palette generator →

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