#7845D1#7845D1

#7845D1 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 52.7% C 0.204 H 295.2°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#7845D1
RGBrgb(120, 69, 209)
HSLhsl(262, 60%, 55%)
HSVhsv(262, 67%, 82%)
CMYKcmyk(42.6%, 67%, 0%, 18%)
CIE-LABlab(42.54, 51.75, -64.54)
CIE-LCHlch(42.54, 82.73, 308.73°)
OKLaboklab(52.73% 0.0868 -0.1844)
OKLCHoklch(52.73% 0.204 295.2)
XYZxyz(21.3794, 12.8523, 61.6635)
Luminance0.1285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845D1 #9ED145
analogous
#4558D1 #7845D1 #BE45D1
triadic
#7845D1 #D17845 #45D178
tetradic
#7845D1 #D14558 #9ED145 #45D1BE
square
#7845D1 #D14558 #9ED145 #45D1BE
split-complementary
#7845D1 #D1BE45 #58D145
monochromatic
#411F7D #5B2BAE #7845D1 #9C76DD #BFA7E9

Accessibility & contrast

On white

5.88
#7845D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7845D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845D1
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845D1#FFFFFF#000000##FFFFFF
##7845D11.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D5
Deuteranopia (green-blind)
#0062CE
Tritanopia (blue-blind)
#606785
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7845d1;
/* rgb */ color: rgb(120, 69, 209);
/* oklch */ color: oklch(52.7% 0.204 295.2);
Tailwind
colors: {
  custom: {
    50: '#a67ce0',
    500: '#7845d1',
    950: '#000000',
  },
}
SCSS
$custom: #7845d1;
$custom-light: #a67ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#7845d1",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 209
  },
  "hsl": {
    "h": 261.857,
    "s": 60.345,
    "l": 54.51
  },
  "oklch": {
    "l": 0.52728,
    "c": 0.20385,
    "h": 295.2
  },
  "luminance": 0.12853
}

Semantic roles & 50–950 ramp

primary
#7845D1
secondary
#C1D79B
accent
#E344AA
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7845D1

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

Preview Lab → · Contrast checker → · Palette generator →

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