#7945C4#7945C4

#7945C4 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.8% C 0.189 H 298.4°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#7945C4
RGBrgb(121, 69, 196)
HSLhsl(265, 52%, 52%)
HSVhsv(265, 65%, 77%)
CMYKcmyk(38.3%, 64.8%, 0%, 23.1%)
CIE-LABlab(41.70, 48.57, -58.37)
CIE-LCHlch(41.70, 75.94, 309.76°)
OKLaboklab(51.85% 0.0898 -0.1663)
OKLCHoklch(51.85% 0.189 298.4)
XYZxyz(19.9746, 12.3064, 53.5369)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7945C4 #90C445
analogous
#4551C4 #7945C4 #B945C4
triadic
#7945C4 #C47945 #45C479
tetradic
#7945C4 #C44551 #90C445 #45C4B9
square
#7945C4 #C44551 #90C445 #45C4B9
split-complementary
#7945C4 #C4B945 #51C445
monochromatic
#41226C #5C319B #7945C4 #9A73D3 #BCA2E1

Accessibility & contrast

On white

6.07
#7945C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#7945C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7945C4
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7945C4#FFFFFF#000000##FFFFFF
##7945C41.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C8
Deuteranopia (green-blind)
#0061C1
Tritanopia (blue-blind)
#67627E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7945c4;
/* rgb */ color: rgb(121, 69, 196);
/* oklch */ color: oklch(51.8% 0.189 298.4);
Tailwind
colors: {
  custom: {
    50: '#a57cd7',
    500: '#7945c4',
    950: '#000000',
  },
}
SCSS
$custom: #7945c4;
$custom-light: #a57cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#7945c4",
  "rgb": {
    "r": 121,
    "g": 69,
    "b": 196
  },
  "hsl": {
    "h": 264.567,
    "s": 51.837,
    "l": 51.961
  },
  "oklch": {
    "l": 0.51849,
    "c": 0.18896,
    "h": 298.4
  },
  "luminance": 0.12307
}

Semantic roles & 50–950 ramp

primary
#7945C4
secondary
#B7CE97
accent
#DB4DA1
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7945C4

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

Preview Lab → · Contrast checker → · Palette generator →

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