#7845D3#7845D3

#7845D3 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 52.9% C 0.206 H 294.8°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#7845D3
RGBrgb(120, 69, 211)
HSLhsl(262, 62%, 55%)
HSVhsv(262, 67%, 83%)
CMYKcmyk(43.1%, 67.3%, 0%, 17.3%)
CIE-LABlab(42.69, 52.28, -65.44)
CIE-LCHlch(42.69, 83.76, 308.62°)
OKLaboklab(52.88% 0.0865 -0.1871)
OKLCHoklch(52.88% 0.206 294.8)
XYZxyz(21.6286, 12.9519, 62.9758)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845D3 #A0D345
analogous
#4559D3 #7845D3 #BF45D3
triadic
#7845D3 #D37845 #45D378
tetradic
#7845D3 #D34559 #A0D345 #45D3BF
square
#7845D3 #D34559 #A0D345 #45D3BF
split-complementary
#7845D3 #D3BF45 #59D345
monochromatic
#411E7F #5A2AB1 #7845D3 #9C76DF #C0A8EA

Accessibility & contrast

On white

5.85
#7845D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#7845D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845D3
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845D3#FFFFFF#000000##FFFFFF
##7845D31.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D7
Deuteranopia (green-blind)
#0063D0
Tritanopia (blue-blind)
#5F6786
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7845d3;
/* rgb */ color: rgb(120, 69, 211);
/* oklch */ color: oklch(52.9% 0.206 294.8);
Tailwind
colors: {
  custom: {
    50: '#a67ce1',
    500: '#7845d3',
    950: '#000000',
  },
}
SCSS
$custom: #7845d3;
$custom-light: #a67ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#7845d3",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 211
  },
  "hsl": {
    "h": 261.549,
    "s": 61.739,
    "l": 54.902
  },
  "oklch": {
    "l": 0.52883,
    "c": 0.20614,
    "h": 294.8
  },
  "luminance": 0.12952
}

Semantic roles & 50–950 ramp

primary
#7845D3
secondary
#C2D89C
accent
#E543AB
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7845D3

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

Preview Lab → · Contrast checker → · Palette generator →

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