#7845E1#7845E1

#7845E1 is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.0% C 0.222 H 292.3°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#7845E1
RGBrgb(120, 69, 225)
HSLhsl(260, 72%, 58%)
HSVhsv(260, 69%, 88%)
CMYKcmyk(46.7%, 69.3%, 0%, 11.8%)
CIE-LABlab(43.78, 55.98, -71.68)
CIE-LCHlch(43.78, 90.95, 307.99°)
OKLaboklab(54% 0.0843 -0.2054)
OKLCHoklch(54% 0.222 292.3)
XYZxyz(23.4607, 13.6848, 72.6249)
Luminance0.1369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845E1 #AEE145
analogous
#4560E1 #7845E1 #C645E1
triadic
#7845E1 #E17845 #45E178
tetradic
#7845E1 #E14560 #AEE145 #45E1C6
square
#7845E1 #E14560 #AEE145 #45E1C6
split-complementary
#7845E1 #E1C645 #60E145
monochromatic
#401894 #5720C8 #7845E1 #9E7AE9 #C4AEF2

Accessibility & contrast

On white

5.62
#7845E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#7845E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845E1
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845E1#FFFFFF#000000##FFFFFF
##7845E11.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE6
Deuteranopia (green-blind)
#0064DE
Tritanopia (blue-blind)
#586D8E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7845e1;
/* rgb */ color: rgb(120, 69, 225);
/* oklch */ color: oklch(54.0% 0.222 292.3);
Tailwind
colors: {
  custom: {
    50: '#a77deb',
    500: '#7845e1',
    950: '#000000',
  },
}
SCSS
$custom: #7845e1;
$custom-light: #a77deb;
$custom-dark: #000000;
JSON
{
  "hex": "#7845e1",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 225
  },
  "hsl": {
    "h": 259.615,
    "s": 72.222,
    "l": 57.647
  },
  "oklch": {
    "l": 0.53998,
    "c": 0.22204,
    "h": 292.3
  },
  "luminance": 0.13686
}

Semantic roles & 50–950 ramp

primary
#7845E1
secondary
#CCE0A2
accent
#EF39B3
background
#FAF7FE
surface
#F5EEFD
border
#CFC9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7845E1

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

Preview Lab → · Contrast checker → · Palette generator →

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