#7945CE#7945CE

#7945CE is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.6% C 0.200 H 296.2°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#7945CE
RGBrgb(121, 69, 206)
HSLhsl(263, 58%, 54%)
HSVhsv(263, 67%, 81%)
CMYKcmyk(41.3%, 66.5%, 0%, 19.2%)
CIE-LABlab(42.43, 51.16, -62.99)
CIE-LCHlch(42.43, 81.15, 309.08°)
OKLaboklab(52.6% 0.0886 -0.1798)
OKLCHoklch(52.6% 0.2 296.2)
XYZxyz(21.1509, 12.7770, 59.7324)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7945CE #9ACE45
analogous
#4556CE #7945CE #BE45CE
triadic
#7945CE #CE7945 #45CE79
tetradic
#7945CE #CE4556 #9ACE45 #45CEBE
square
#7945CE #CE4556 #9ACE45 #45CEBE
split-complementary
#7945CE #CEBE45 #56CE45
monochromatic
#422079 #5C2DA9 #7945CE #9C75DB #BFA6E8

Accessibility & contrast

On white

5.91
#7945CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7945CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7945CE
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7945CE#FFFFFF#000000##FFFFFF
##7945CE1.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D2
Deuteranopia (green-blind)
#0062CB
Tritanopia (blue-blind)
#636684
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7945ce;
/* rgb */ color: rgb(121, 69, 206);
/* oklch */ color: oklch(52.6% 0.200 296.2);
Tailwind
colors: {
  custom: {
    50: '#a67cde',
    500: '#7945ce',
    950: '#000000',
  },
}
SCSS
$custom: #7945ce;
$custom-light: #a67cde;
$custom-dark: #000000;
JSON
{
  "hex": "#7945ce",
  "rgb": {
    "r": 121,
    "g": 69,
    "b": 206
  },
  "hsl": {
    "h": 262.774,
    "s": 58.298,
    "l": 53.922
  },
  "oklch": {
    "l": 0.526,
    "c": 0.20049,
    "h": 296.2
  },
  "luminance": 0.12777
}

Semantic roles & 50–950 ramp

primary
#7945CE
secondary
#BED59A
accent
#E246A7
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7945CE

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

Preview Lab → · Contrast checker → · Palette generator →

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