#7942CD#7942CD

#7942CD is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.1% C 0.203 H 296.9°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#7942CD
RGBrgb(121, 66, 205)
HSLhsl(264, 58%, 53%)
HSVhsv(264, 68%, 80%)
CMYKcmyk(41%, 67.8%, 0%, 19.6%)
CIE-LABlab(41.80, 52.43, -63.44)
CIE-LCHlch(41.80, 82.30, 309.57°)
OKLaboklab(52.13% 0.0918 -0.1811)
OKLCHoklch(52.13% 0.203 296.9)
XYZxyz(20.8499, 12.3688, 59.0347)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7942CD #96CD42
analogous
#4250CD #7942CD #BE42CD
triadic
#7942CD #CD7942 #42CD79
tetradic
#7942CD #CD4250 #96CD42 #42CDBE
square
#7942CD #CD4250 #96CD42 #42CDBE
split-complementary
#7942CD #CDBE42 #50CD42
monochromatic
#411F76 #5C2CA6 #7942CD #9B72DA #BEA3E7

Accessibility & contrast

On white

6.05
#7942CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#7942CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7942CD
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7942CD#FFFFFF#000000##FFFFFF
##7942CD1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D1
Deuteranopia (green-blind)
#0061CA
Tritanopia (blue-blind)
#646382
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7942cd;
/* rgb */ color: rgb(121, 66, 205);
/* oklch */ color: oklch(52.1% 0.203 296.9);
Tailwind
colors: {
  custom: {
    50: '#a67add',
    500: '#7942cd',
    950: '#000000',
  },
}
SCSS
$custom: #7942cd;
$custom-light: #a67add;
$custom-dark: #000000;
JSON
{
  "hex": "#7942cd",
  "rgb": {
    "r": 121,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 263.741,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52126,
    "c": 0.2031,
    "h": 296.9
  },
  "luminance": 0.12369
}

Semantic roles & 50–950 ramp

primary
#7942CD
secondary
#BCD397
accent
#E146A4
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7942CD

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

Preview Lab → · Contrast checker → · Palette generator →

#7942CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva