#7942BF#7942BF

#7942BF is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.1% C 0.187 H 300.0°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#7942BF
RGBrgb(121, 66, 191)
HSLhsl(266, 49%, 50%)
HSVhsv(266, 65%, 75%)
CMYKcmyk(36.6%, 65.4%, 0%, 25.1%)
CIE-LABlab(40.77, 48.85, -56.96)
CIE-LCHlch(40.77, 75.04, 310.62°)
OKLaboklab(51.07% 0.0936 -0.1621)
OKLCHoklch(51.07% 0.187 300)
XYZxyz(19.2350, 11.7228, 50.5295)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7942BF #88BF42
analogous
#4249BF #7942BF #B742BF
triadic
#7942BF #BF7942 #42BF79
tetradic
#7942BF #BF4249 #88BF42 #42BFB7
square
#7942BF #BF4249 #88BF42 #42BFB7
split-complementary
#7942BF #BFB742 #49BF42
monochromatic
#3F2265 #5C3292 #7942BF #9970CE #BA9DDE

Accessibility & contrast

On white

6.28
#7942BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7942BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7942BF
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7942BF#FFFFFF#000000##FFFFFF
##7942BF1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C3
Deuteranopia (green-blind)
#005FBC
Tritanopia (blue-blind)
#6A5E7B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7942bf;
/* rgb */ color: rgb(121, 66, 191);
/* oklch */ color: oklch(51.1% 0.187 300.0);
Tailwind
colors: {
  custom: {
    50: '#a57ad3',
    500: '#7942bf',
    950: '#000000',
  },
}
SCSS
$custom: #7942bf;
$custom-light: #a57ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#7942bf",
  "rgb": {
    "r": 121,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 266.4,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51068,
    "c": 0.18719,
    "h": 300
  },
  "luminance": 0.11723
}

Semantic roles & 50–950 ramp

primary
#7942BF
secondary
#B2CA93
accent
#D94F9C
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7942BF

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

Preview Lab → · Contrast checker → · Palette generator →

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