#7845C2#7845C2

#7845C2 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.6% C 0.186 H 298.4°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7845C2
RGBrgb(120, 69, 194)
HSLhsl(264, 51%, 52%)
HSVhsv(264, 64%, 76%)
CMYKcmyk(38.1%, 64.4%, 0%, 23.9%)
CIE-LABlab(41.44, 47.84, -57.63)
CIE-LCHlch(41.44, 74.90, 309.70°)
OKLaboklab(51.59% 0.0886 -0.1641)
OKLCHoklch(51.59% 0.187 298.4)
XYZxyz(19.6090, 12.1441, 52.3394)
Luminance0.1214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845C2 #8FC245
analogous
#4551C2 #7845C2 #B745C2
triadic
#7845C2 #C27845 #45C278
tetradic
#7845C2 #C24551 #8FC245 #45C2B7
square
#7845C2 #C24551 #8FC245 #45C2B7
split-complementary
#7845C2 #C2B745 #51C245
monochromatic
#40236A #5C3298 #7845C2 #9973D1 #BBA1E0

Accessibility & contrast

On white

6.12
#7845C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7845C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845C2
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845C2#FFFFFF#000000##FFFFFF
##7845C21.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#0060BF
Tritanopia (blue-blind)
#67617D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7845c2;
/* rgb */ color: rgb(120, 69, 194);
/* oklch */ color: oklch(51.6% 0.186 298.4);
Tailwind
colors: {
  custom: {
    50: '#a47cd5',
    500: '#7845c2',
    950: '#000000',
  },
}
SCSS
$custom: #7845c2;
$custom-light: #a47cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7845c2",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 194
  },
  "hsl": {
    "h": 264.48,
    "s": 50.607,
    "l": 51.569
  },
  "oklch": {
    "l": 0.51594,
    "c": 0.1865,
    "h": 298.4
  },
  "luminance": 0.12144
}

Semantic roles & 50–950 ramp

primary
#7845C2
secondary
#B6CD96
accent
#DA4EA1
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7845C2

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

Preview Lab → · Contrast checker → · Palette generator →

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