#7845C9#7845C9

#7845C9 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.1% C 0.195 H 296.8°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#7845C9
RGBrgb(120, 69, 201)
HSLhsl(263, 55%, 53%)
HSVhsv(263, 66%, 79%)
CMYKcmyk(40.3%, 65.7%, 0%, 21.2%)
CIE-LABlab(41.95, 49.66, -60.88)
CIE-LCHlch(41.95, 78.56, 309.20°)
OKLaboklab(52.12% 0.0878 -0.1737)
OKLCHoklch(52.12% 0.195 296.8)
XYZxyz(20.4137, 12.4660, 56.5777)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845C9 #96C945
analogous
#4554C9 #7845C9 #BA45C9
triadic
#7845C9 #C97845 #45C978
tetradic
#7845C9 #C94554 #96C945 #45C9BA
square
#7845C9 #C94554 #96C945 #45C9BA
split-complementary
#7845C9 #C9BA45 #54C945
monochromatic
#412172 #5B2FA2 #7845C9 #9A74D7 #BDA4E5

Accessibility & contrast

On white

6.01
#7845C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#7845C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845C9
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845C9#FFFFFF#000000##FFFFFF
##7845C91.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CD
Deuteranopia (green-blind)
#0061C6
Tritanopia (blue-blind)
#646481
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7845c9;
/* rgb */ color: rgb(120, 69, 201);
/* oklch */ color: oklch(52.1% 0.195 296.8);
Tailwind
colors: {
  custom: {
    50: '#a57cda',
    500: '#7845c9',
    950: '#000000',
  },
}
SCSS
$custom: #7845c9;
$custom-light: #a57cda;
$custom-dark: #000000;
JSON
{
  "hex": "#7845c9",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 201
  },
  "hsl": {
    "h": 263.182,
    "s": 55,
    "l": 52.941
  },
  "oklch": {
    "l": 0.52116,
    "c": 0.19463,
    "h": 296.8
  },
  "luminance": 0.12466
}

Semantic roles & 50–950 ramp

primary
#7845C9
secondary
#BBD198
accent
#DE49A5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7845C9

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

Preview Lab → · Contrast checker → · Palette generator →

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