#7945CA#7945CA

#7945CA is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.3% C 0.196 H 297.1°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#7945CA
RGBrgb(121, 69, 202)
HSLhsl(263, 56%, 53%)
HSVhsv(263, 66%, 79%)
CMYKcmyk(40.1%, 65.8%, 0%, 20.8%)
CIE-LABlab(42.13, 50.12, -61.16)
CIE-LCHlch(42.13, 79.07, 309.34°)
OKLaboklab(52.3% 0.0891 -0.1745)
OKLCHoklch(52.3% 0.196 297.1)
XYZxyz(20.6712, 12.5851, 57.2057)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7945CA #96CA45
analogous
#4553CA #7945CA #BC45CA
triadic
#7945CA #CA7945 #45CA79
tetradic
#7945CA #CA4553 #96CA45 #45CABC
square
#7945CA #CA4553 #96CA45 #45CABC
split-complementary
#7945CA #CABC45 #53CA45
monochromatic
#412174 #5C2FA3 #7945CA #9B75D8 #BEA4E5

Accessibility & contrast

On white

5.97
#7945CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#7945CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7945CA
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7945CA#FFFFFF#000000##FFFFFF
##7945CA1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CE
Deuteranopia (green-blind)
#0062C7
Tritanopia (blue-blind)
#656482
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7945ca;
/* rgb */ color: rgb(121, 69, 202);
/* oklch */ color: oklch(52.3% 0.196 297.1);
Tailwind
colors: {
  custom: {
    50: '#a67cdb',
    500: '#7945ca',
    950: '#000000',
  },
}
SCSS
$custom: #7945ca;
$custom-light: #a67cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#7945ca",
  "rgb": {
    "r": 121,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 263.459,
    "s": 55.649,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52297,
    "c": 0.1959,
    "h": 297.1
  },
  "luminance": 0.12585
}

Semantic roles & 50–950 ramp

primary
#7945CA
secondary
#BCD299
accent
#DF49A4
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7945CA

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

Preview Lab → · Contrast checker → · Palette generator →

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