#7945E6#7945E6

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

Color values

HEX#7945E6
RGBrgb(121, 69, 230)
HSLhsl(259, 76%, 59%)
HSVhsv(259, 70%, 90%)
CMYKcmyk(47.4%, 70%, 0%, 9.8%)
CIE-LABlab(44.28, 57.48, -73.69)
CIE-LCHlch(44.28, 93.46, 307.95°)
OKLaboklab(54.51% 0.0847 -0.2113)
OKLCHoklch(54.51% 0.228 291.9)
XYZxyz(24.2922, 14.0335, 76.2764)
Luminance0.1403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7945E6 #B2E645
analogous
#4561E6 #7945E6 #C945E6
triadic
#7945E6 #E67945 #45E679
tetradic
#7945E6 #E64561 #B2E645 #45E6C9
square
#7945E6 #E64561 #B2E645 #45E6C9
split-complementary
#7945E6 #E6C945 #61E645
monochromatic
#40159C #571CD2 #7945E6 #A07BED #C7B1F5

Accessibility & contrast

On white

5.52
#7945E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#7945E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7945E6
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7945E6#FFFFFF#000000##FFFFFF
##7945E61.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BEB
Deuteranopia (green-blind)
#0065E3
Tritanopia (blue-blind)
#566E91
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7945e6;
/* rgb */ color: rgb(121, 69, 230);
/* oklch */ color: oklch(54.5% 0.228 291.9);
Tailwind
colors: {
  custom: {
    50: '#a97def',
    500: '#7945e6',
    950: '#000000',
  },
}
SCSS
$custom: #7945e6;
$custom-light: #a97def;
$custom-dark: #000000;
JSON
{
  "hex": "#7945e6",
  "rgb": {
    "r": 121,
    "g": 69,
    "b": 230
  },
  "hsl": {
    "h": 259.379,
    "s": 76.303,
    "l": 58.627
  },
  "oklch": {
    "l": 0.54505,
    "c": 0.22766,
    "h": 291.9
  },
  "luminance": 0.14034
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7945E6

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

Preview Lab → · Contrast checker → · Palette generator →

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