#7845BF#7845BF

#7845BF is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.4% C 0.183 H 299.0°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#7845BF
RGBrgb(120, 69, 191)
HSLhsl(265, 49%, 51%)
HSVhsv(265, 64%, 75%)
CMYKcmyk(37.2%, 63.9%, 0%, 25.1%)
CIE-LABlab(41.23, 47.07, -56.22)
CIE-LCHlch(41.23, 73.32, 309.93°)
OKLaboklab(51.38% 0.0888 -0.16)
OKLCHoklch(51.38% 0.183 299)
XYZxyz(19.2755, 12.0107, 50.5829)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845BF #8CBF45
analogous
#454FBF #7845BF #B545BF
triadic
#7845BF #BF7845 #45BF78
tetradic
#7845BF #BF454F #8CBF45 #45BFB5
square
#7845BF #BF454F #8CBF45 #45BFB5
split-complementary
#7845BF #BFB545 #4FBF45
monochromatic
#3F2366 #5B3394 #7845BF #9973CF #BAA0DE

Accessibility & contrast

On white

6.17
#7845BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7845BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845BF
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845BF#FFFFFF#000000##FFFFFF
##7845BF1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#0560BC
Tritanopia (blue-blind)
#68607C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7845bf;
/* rgb */ color: rgb(120, 69, 191);
/* oklch */ color: oklch(51.4% 0.183 299.0);
Tailwind
colors: {
  custom: {
    50: '#a47bd3',
    500: '#7845bf',
    950: '#000000',
  },
}
SCSS
$custom: #7845bf;
$custom-light: #a47bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7845bf",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 191
  },
  "hsl": {
    "h": 265.082,
    "s": 48.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51375,
    "c": 0.18299,
    "h": 299
  },
  "luminance": 0.12011
}

Semantic roles & 50–950 ramp

primary
#7845BF
secondary
#B4CB95
accent
#D84F9F
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7845BF

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

Preview Lab → · Contrast checker → · Palette generator →

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