#793DC8#793DC8

#793DC8 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.1% C 0.204 H 298.7°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#793DC8
RGBrgb(121, 61, 200)
HSLhsl(266, 56%, 51%)
HSVhsv(266, 70%, 78%)
CMYKcmyk(39.5%, 69.5%, 0%, 21.6%)
CIE-LABlab(40.53, 53.62, -62.60)
CIE-LCHlch(40.53, 82.43, 310.58°)
OKLaboklab(51.1% 0.0977 -0.1787)
OKLCHoklch(51.1% 0.204 298.7)
XYZxyz(19.9766, 11.5723, 55.8136)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793DC8 #8CC83D
analogous
#3D46C8 #793DC8 #BE3DC8
triadic
#793DC8 #C8793D #3DC879
tetradic
#793DC8 #C83D46 #8CC83D #3DC8BE
square
#793DC8 #C83D46 #8CC83D #3DC8BE
split-complementary
#793DC8 #C8BE3D #46C83D
monochromatic
#401F6C #5C2C9C #793DC8 #9A6DD6 #BB9CE3

Accessibility & contrast

On white

6.34
#793DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#793DC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #793DC8
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793DC8#FFFFFF#000000##FFFFFF
##793DC81.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#005EC5
Tritanopia (blue-blind)
#665F7E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #793dc8;
/* rgb */ color: rgb(121, 61, 200);
/* oklch */ color: oklch(51.1% 0.204 298.7);
Tailwind
colors: {
  custom: {
    50: '#a677da',
    500: '#793dc8',
    950: '#000000',
  },
}
SCSS
$custom: #793dc8;
$custom-light: #a677da;
$custom-dark: #000000;
JSON
{
  "hex": "#793dc8",
  "rgb": {
    "r": 121,
    "g": 61,
    "b": 200
  },
  "hsl": {
    "h": 265.899,
    "s": 55.823,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51102,
    "c": 0.20362,
    "h": 298.7
  },
  "luminance": 0.11573
}

Semantic roles & 50–950 ramp

primary
#793DC8
secondary
#B5CF92
accent
#DF499E
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #793DC8

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

Preview Lab → · Contrast checker → · Palette generator →

#793DC8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva