#7845E2#7845E2

#7845E2 is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.1% C 0.223 H 292.1°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#7845E2
RGBrgb(120, 69, 226)
HSLhsl(259, 73%, 58%)
HSVhsv(259, 69%, 89%)
CMYKcmyk(46.9%, 69.5%, 0%, 11.4%)
CIE-LABlab(43.86, 56.25, -72.12)
CIE-LCHlch(43.86, 91.46, 307.95°)
OKLaboklab(54.08% 0.0841 -0.2067)
OKLCHoklch(54.08% 0.223 292.1)
XYZxyz(23.5975, 13.7395, 73.3454)
Luminance0.1374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845E2 #AFE245
analogous
#4561E2 #7845E2 #C645E2
triadic
#7845E2 #E27845 #45E278
tetradic
#7845E2 #E24561 #AFE245 #45E2C6
square
#7845E2 #E24561 #AFE245 #45E2C6
split-complementary
#7845E2 #E2C645 #61E245
monochromatic
#401795 #5720CA #7845E2 #9E7AEA #C5AFF3

Accessibility & contrast

On white

5.60
#7845E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#7845E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845E2
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845E2#FFFFFF#000000##FFFFFF
##7845E21.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE7
Deuteranopia (green-blind)
#0064DF
Tritanopia (blue-blind)
#576D8F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7845e2;
/* rgb */ color: rgb(120, 69, 226);
/* oklch */ color: oklch(54.1% 0.223 292.1);
Tailwind
colors: {
  custom: {
    50: '#a87dec',
    500: '#7845e2',
    950: '#000000',
  },
}
SCSS
$custom: #7845e2;
$custom-light: #a87dec;
$custom-dark: #000000;
JSON
{
  "hex": "#7845e2",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 226
  },
  "hsl": {
    "h": 259.49,
    "s": 73.023,
    "l": 57.843
  },
  "oklch": {
    "l": 0.5408,
    "c": 0.22316,
    "h": 292.1
  },
  "luminance": 0.1374
}

Semantic roles & 50–950 ramp

primary
#7845E2
secondary
#CCE1A2
accent
#F038B4
background
#FAF7FE
surface
#F5EEFD
border
#CFC9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7845E2

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

Preview Lab → · Contrast checker → · Palette generator →

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