#7845EA#7845EA

#7845EA is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.7% C 0.232 H 290.8°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#7845EA
RGBrgb(120, 69, 234)
HSLhsl(259, 80%, 59%)
HSVhsv(259, 71%, 92%)
CMYKcmyk(48.7%, 70.5%, 0%, 8.2%)
CIE-LABlab(44.50, 58.38, -75.60)
CIE-LCHlch(44.50, 95.51, 307.67°)
OKLaboklab(54.74% 0.0826 -0.2169)
OKLCHoklch(54.74% 0.232 290.8)
XYZxyz(24.7209, 14.1889, 79.2621)
Luminance0.1419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845EA #B7EA45
analogous
#4565EA #7845EA #CA45EA
triadic
#7845EA #EA7845 #45EA78
tetradic
#7845EA #EA4565 #B7EA45 #45EACA
square
#7845EA #EA4565 #B7EA45 #45EACA
split-complementary
#7845EA #EACA45 #65EA45
monochromatic
#3F12A2 #5419D9 #7845EA #A07CF0 #C8B3F6

Accessibility & contrast

On white

5.47
#7845EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#7845EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845EA
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845EA#FFFFFF#000000##FFFFFF
##7845EA1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CEF
Deuteranopia (green-blind)
#0066E7
Tritanopia (blue-blind)
#527093
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7845ea;
/* rgb */ color: rgb(120, 69, 234);
/* oklch */ color: oklch(54.7% 0.232 290.8);
Tailwind
colors: {
  custom: {
    50: '#a97df2',
    500: '#7845ea',
    950: '#000000',
  },
}
SCSS
$custom: #7845ea;
$custom-light: #a97df2;
$custom-dark: #000000;
JSON
{
  "hex": "#7845ea",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 234
  },
  "hsl": {
    "h": 258.545,
    "s": 79.71,
    "l": 59.412
  },
  "oklch": {
    "l": 0.54739,
    "c": 0.23211,
    "h": 290.8
  },
  "luminance": 0.1419
}

Semantic roles & 50–950 ramp

primary
#7845EA
secondary
#D2E6A5
accent
#F632B9
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A17
muted
#807C85

Preview Lab

Preview with #7845EA

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

Preview Lab → · Contrast checker → · Palette generator →

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