#7845E8#7845E8

#7845E8 is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.6% C 0.230 H 291.2°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#7845E8
RGBrgb(120, 69, 232)
HSLhsl(259, 78%, 59%)
HSVhsv(259, 70%, 91%)
CMYKcmyk(48.3%, 70.3%, 0%, 9%)
CIE-LABlab(44.34, 57.84, -74.73)
CIE-LCHlch(44.34, 94.50, 307.74°)
OKLaboklab(54.57% 0.083 -0.2144)
OKLCHoklch(54.57% 0.23 291.2)
XYZxyz(24.4352, 14.0746, 77.7575)
Luminance0.1408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845E8 #B5E845
analogous
#4564E8 #7845E8 #CA45E8
triadic
#7845E8 #E87845 #45E878
tetradic
#7845E8 #E84564 #B5E845 #45E8CA
square
#7845E8 #E84564 #B5E845 #45E8CA
split-complementary
#7845E8 #E8CA45 #64E845
monochromatic
#3F149F #551AD5 #7845E8 #A07BEF #C7B2F5

Accessibility & contrast

On white

5.50
#7845E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#7845E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845E8
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845E8#FFFFFF#000000##FFFFFF
##7845E81.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BED
Deuteranopia (green-blind)
#0065E5
Tritanopia (blue-blind)
#536F92
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7845e8;
/* rgb */ color: rgb(120, 69, 232);
/* oklch */ color: oklch(54.6% 0.230 291.2);
Tailwind
colors: {
  custom: {
    50: '#a87df0',
    500: '#7845e8',
    950: '#000000',
  },
}
SCSS
$custom: #7845e8;
$custom-light: #a87df0;
$custom-dark: #000000;
JSON
{
  "hex": "#7845e8",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 232
  },
  "hsl": {
    "h": 258.773,
    "s": 77.99,
    "l": 59.02
  },
  "oklch": {
    "l": 0.54573,
    "c": 0.22988,
    "h": 291.2
  },
  "luminance": 0.14076
}

Semantic roles & 50–950 ramp

primary
#7845E8
secondary
#D0E4A4
accent
#F433B8
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A17
muted
#807C85

Preview Lab

Preview with #7845E8

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

Preview Lab → · Contrast checker → · Palette generator →

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