#7945E8#7945E8

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

Color values

HEX#7945E8
RGBrgb(121, 69, 232)
HSLhsl(259, 78%, 59%)
HSVhsv(259, 70%, 91%)
CMYKcmyk(47.8%, 70.3%, 0%, 9%)
CIE-LABlab(44.44, 58.01, -74.56)
CIE-LCHlch(44.44, 94.47, 307.88°)
OKLaboklab(54.67% 0.0844 -0.2138)
OKLCHoklch(54.67% 0.23 291.5)
XYZxyz(24.5747, 14.1465, 77.7640)
Luminance0.1415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7945E8 #B4E845
analogous
#4563E8 #7945E8 #CA45E8
triadic
#7945E8 #E87945 #45E879
tetradic
#7945E8 #E84563 #B4E845 #45E8CA
square
#7945E8 #E84563 #B4E845 #45E8CA
split-complementary
#7945E8 #E8CA45 #63E845
monochromatic
#40149F #561AD5 #7945E8 #A07BEF #C7B2F5

Accessibility & contrast

On white

5.48
#7945E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#7945E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7945E8
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7945E8#FFFFFF#000000##FFFFFF
##7945E81.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CED
Deuteranopia (green-blind)
#0066E5
Tritanopia (blue-blind)
#556F92
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7945e8;
/* rgb */ color: rgb(121, 69, 232);
/* oklch */ color: oklch(54.7% 0.230 291.5);
Tailwind
colors: {
  custom: {
    50: '#a97df0',
    500: '#7945e8',
    950: '#000000',
  },
}
SCSS
$custom: #7945e8;
$custom-light: #a97df0;
$custom-dark: #000000;
JSON
{
  "hex": "#7945e8",
  "rgb": {
    "r": 121,
    "g": 69,
    "b": 232
  },
  "hsl": {
    "h": 259.141,
    "s": 77.99,
    "l": 59.02
  },
  "oklch": {
    "l": 0.54669,
    "c": 0.22988,
    "h": 291.5
  },
  "luminance": 0.14147
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7945E8

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

Preview Lab → · Contrast checker → · Palette generator →

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