#7845E6#7845E6

#7845E6 is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.4% C 0.228 H 291.5°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#7845E6
RGBrgb(120, 69, 230)
HSLhsl(259, 76%, 59%)
HSVhsv(259, 70%, 90%)
CMYKcmyk(47.8%, 70%, 0%, 9.8%)
CIE-LABlab(44.18, 57.31, -73.87)
CIE-LCHlch(44.18, 93.49, 307.81°)
OKLaboklab(54.41% 0.0833 -0.2118)
OKLCHoklch(54.41% 0.228 291.5)
XYZxyz(24.1527, 13.9616, 76.2698)
Luminance0.1396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845E6 #B3E645
analogous
#4562E6 #7845E6 #C845E6
triadic
#7845E6 #E67845 #45E678
tetradic
#7845E6 #E64562 #B3E645 #45E6C8
square
#7845E6 #E64562 #B3E645 #45E6C8
split-complementary
#7845E6 #E6C845 #62E645
monochromatic
#40159C #561CD2 #7845E6 #9F7BED #C6B1F5

Accessibility & contrast

On white

5.54
#7845E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#7845E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845E6
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845E6#FFFFFF#000000##FFFFFF
##7845E61.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BEB
Deuteranopia (green-blind)
#0065E3
Tritanopia (blue-blind)
#556F91
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7845e6;
/* rgb */ color: rgb(120, 69, 230);
/* oklch */ color: oklch(54.4% 0.228 291.5);
Tailwind
colors: {
  custom: {
    50: '#a87def',
    500: '#7845e6',
    950: '#000000',
  },
}
SCSS
$custom: #7845e6;
$custom-light: #a87def;
$custom-dark: #000000;
JSON
{
  "hex": "#7845e6",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 230
  },
  "hsl": {
    "h": 259.006,
    "s": 76.303,
    "l": 58.627
  },
  "oklch": {
    "l": 0.54407,
    "c": 0.22764,
    "h": 291.5
  },
  "luminance": 0.13962
}

Semantic roles & 50–950 ramp

primary
#7845E6
secondary
#CFE3A4
accent
#F335B7
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A17
muted
#807C85

Preview Lab

Preview with #7845E6

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

Preview Lab → · Contrast checker → · Palette generator →

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