#7845BE#7845BE

#7845BE is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.3% C 0.182 H 299.3°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#7845BE
RGBrgb(120, 69, 190)
HSLhsl(265, 48%, 51%)
HSVhsv(265, 64%, 75%)
CMYKcmyk(36.8%, 63.7%, 0%, 25.5%)
CIE-LABlab(41.16, 46.81, -55.75)
CIE-LCHlch(41.16, 72.79, 310.02°)
OKLaboklab(51.3% 0.0889 -0.1586)
OKLCHoklch(51.3% 0.182 299.3)
XYZxyz(19.1658, 11.9668, 50.0053)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845BE #8BBE45
analogous
#454EBE #7845BE #B445BE
triadic
#7845BE #BE7845 #45BE78
tetradic
#7845BE #BE454E #8BBE45 #45BEB4
square
#7845BE #BE454E #8BBE45 #45BEB4
split-complementary
#7845BE #BEB445 #4EBE45
monochromatic
#3F2365 #5B3393 #7845BE #9972CE #BAA0DE

Accessibility & contrast

On white

6.19
#7845BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#7845BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845BE
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845BE#FFFFFF#000000##FFFFFF
##7845BE1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C2
Deuteranopia (green-blind)
#0960BB
Tritanopia (blue-blind)
#68607B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7845be;
/* rgb */ color: rgb(120, 69, 190);
/* oklch */ color: oklch(51.3% 0.182 299.3);
Tailwind
colors: {
  custom: {
    50: '#a47bd2',
    500: '#7845be',
    950: '#000000',
  },
}
SCSS
$custom: #7845be;
$custom-light: #a47bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7845be",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 190
  },
  "hsl": {
    "h": 265.289,
    "s": 48.207,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51302,
    "c": 0.18182,
    "h": 299.3
  },
  "luminance": 0.11967
}

Semantic roles & 50–950 ramp

primary
#7845BE
secondary
#B4CA95
accent
#D8509F
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7845BE

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

Preview Lab → · Contrast checker → · Palette generator →

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