#7942CB#7942CB

#7942CB is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.0% C 0.201 H 297.3°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#7942CB
RGBrgb(121, 66, 203)
HSLhsl(264, 57%, 53%)
HSVhsv(264, 67%, 80%)
CMYKcmyk(40.4%, 67.5%, 0%, 20.4%)
CIE-LABlab(41.65, 51.91, -62.52)
CIE-LCHlch(41.65, 81.26, 309.70°)
OKLaboklab(51.97% 0.0921 -0.1785)
OKLCHoklch(51.97% 0.201 297.3)
XYZxyz(20.6101, 12.2728, 57.7714)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7942CB #94CB42
analogous
#424FCB #7942CB #BE42CB
triadic
#7942CB #CB7942 #42CB79
tetradic
#7942CB #CB424F #94CB42 #42CBBE
square
#7942CB #CB424F #94CB42 #42CBBE
split-complementary
#7942CB #CBBE42 #4FCB42
monochromatic
#412073 #5C2DA3 #7942CB #9B72D8 #BDA2E5

Accessibility & contrast

On white

6.08
#7942CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7942CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7942CB
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7942CB#FFFFFF#000000##FFFFFF
##7942CB1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CF
Deuteranopia (green-blind)
#0061C8
Tritanopia (blue-blind)
#656381
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7942cb;
/* rgb */ color: rgb(121, 66, 203);
/* oklch */ color: oklch(52.0% 0.201 297.3);
Tailwind
colors: {
  custom: {
    50: '#a67adc',
    500: '#7942cb',
    950: '#000000',
  },
}
SCSS
$custom: #7942cb;
$custom-light: #a67adc;
$custom-dark: #000000;
JSON
{
  "hex": "#7942cb",
  "rgb": {
    "r": 121,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 264.088,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.51972,
    "c": 0.20084,
    "h": 297.3
  },
  "luminance": 0.12273
}

Semantic roles & 50–950 ramp

primary
#7942CB
secondary
#BAD297
accent
#E048A3
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7942CB

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

Preview Lab → · Contrast checker → · Palette generator →

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