#7945CC#7945CC

#7945CC is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.4% C 0.198 H 296.6°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#7945CC
RGBrgb(121, 69, 204)
HSLhsl(263, 57%, 54%)
HSVhsv(263, 66%, 80%)
CMYKcmyk(40.7%, 66.2%, 0%, 20%)
CIE-LABlab(42.28, 50.64, -62.08)
CIE-LCHlch(42.28, 80.11, 309.21°)
OKLaboklab(52.45% 0.0889 -0.1772)
OKLCHoklch(52.45% 0.198 296.6)
XYZxyz(20.9095, 12.6804, 58.4610)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7945CC #98CC45
analogous
#4554CC #7945CC #BC45CC
triadic
#7945CC #CC7945 #45CC79
tetradic
#7945CC #CC4554 #98CC45 #45CCBC
square
#7945CC #CC4554 #98CC45 #45CCBC
split-complementary
#7945CC #CCBC45 #54CC45
monochromatic
#412076 #5C2EA6 #7945CC #9C75D9 #BEA5E6

Accessibility & contrast

On white

5.94
#7945CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7945CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7945CC
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7945CC#FFFFFF#000000##FFFFFF
##7945CC1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D0
Deuteranopia (green-blind)
#0062C9
Tritanopia (blue-blind)
#646583
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7945cc;
/* rgb */ color: rgb(121, 69, 204);
/* oklch */ color: oklch(52.4% 0.198 296.6);
Tailwind
colors: {
  custom: {
    50: '#a67cdc',
    500: '#7945cc',
    950: '#000000',
  },
}
SCSS
$custom: #7945cc;
$custom-light: #a67cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#7945cc",
  "rgb": {
    "r": 121,
    "g": 69,
    "b": 204
  },
  "hsl": {
    "h": 263.111,
    "s": 56.962,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52448,
    "c": 0.1982,
    "h": 296.6
  },
  "luminance": 0.12681
}

Semantic roles & 50–950 ramp

primary
#7945CC
secondary
#BDD399
accent
#E048A5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7945CC

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

Preview Lab → · Contrast checker → · Palette generator →

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