#793CD8#793CD8

#793CD8 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.3% C 0.222 H 295.5°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#793CD8
RGBrgb(121, 60, 216)
HSLhsl(263, 67%, 54%)
HSVhsv(263, 72%, 85%)
CMYKcmyk(44%, 72.2%, 0%, 15.3%)
CIE-LABlab(41.62, 58.14, -70.06)
CIE-LCHlch(41.62, 91.05, 309.69°)
OKLaboklab(52.27% 0.0955 -0.2006)
OKLCHoklch(52.27% 0.222 295.5)
XYZxyz(21.8924, 12.2540, 66.1642)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793CD8 #9BD83C
analogous
#3C4DD8 #793CD8 #C73CD8
triadic
#793CD8 #D8793C #3CD879
tetradic
#793CD8 #D83C4D #9BD83C #3CD8C7
square
#793CD8 #D83C4D #9BD83C #3CD8C7
split-complementary
#793CD8 #D8C73C #4DD83C
monochromatic
#421A80 #5C24B3 #793CD8 #9C6FE2 #BFA2EC

Accessibility & contrast

On white

6.09
#793CD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#793CD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #793CD8
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793CD8#FFFFFF#000000##FFFFFF
##793CD81.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DD
Deuteranopia (green-blind)
#0060D5
Tritanopia (blue-blind)
#5F6487
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #793cd8;
/* rgb */ color: rgb(121, 60, 216);
/* oklch */ color: oklch(52.3% 0.222 295.5);
Tailwind
colors: {
  custom: {
    50: '#a877e5',
    500: '#793cd8',
    950: '#000000',
  },
}
SCSS
$custom: #793cd8;
$custom-light: #a877e5;
$custom-dark: #000000;
JSON
{
  "hex": "#793cd8",
  "rgb": {
    "r": 121,
    "g": 60,
    "b": 216
  },
  "hsl": {
    "h": 263.462,
    "s": 66.667,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52266,
    "c": 0.22219,
    "h": 295.5
  },
  "luminance": 0.12255
}

Semantic roles & 50–950 ramp

primary
#793CD8
secondary
#BFD997
accent
#EA3EA7
background
#FAF7FE
surface
#F5EDFC
border
#CFC8D5
text
#110916
muted
#807B84

Preview Lab

Preview with #793CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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