#793FD2#793FD2

#793FD2 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.1% C 0.212 H 296.3°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#793FD2
RGBrgb(121, 63, 210)
HSLhsl(264, 62%, 54%)
HSVhsv(264, 70%, 82%)
CMYKcmyk(42.4%, 70%, 0%, 17.6%)
CIE-LABlab(41.65, 55.19, -66.57)
CIE-LCHlch(41.65, 86.47, 309.66°)
OKLaboklab(52.14% 0.094 -0.1903)
OKLCHoklch(52.14% 0.212 296.3)
XYZxyz(21.2925, 12.2726, 62.2073)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793FD2 #98D23F
analogous
#3F4ED2 #793FD2 #C23FD2
triadic
#793FD2 #D2793F #3FD279
tetradic
#793FD2 #D23F4E #98D23F #3FD2C2
square
#793FD2 #D23F4E #98D23F #3FD2C2
split-complementary
#793FD2 #D2C23F #4ED23F
monochromatic
#411D7A #5C28AC #793FD2 #9C71DE #BEA2E9

Accessibility & contrast

On white

6.08
#793FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #793FD2
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793FD2#FFFFFF#000000##FFFFFF
##793FD21.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)
#0063D6
Deuteranopia (green-blind)
#0060CF
Tritanopia (blue-blind)
#626484
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #793fd2;
/* rgb */ color: rgb(121, 63, 210);
/* oklch */ color: oklch(52.1% 0.212 296.3);
Tailwind
colors: {
  custom: {
    50: '#a779e1',
    500: '#793fd2',
    950: '#000000',
  },
}
SCSS
$custom: #793fd2;
$custom-light: #a779e1;
$custom-dark: #000000;
JSON
{
  "hex": "#793fd2",
  "rgb": {
    "r": 121,
    "g": 63,
    "b": 210
  },
  "hsl": {
    "h": 263.673,
    "s": 62.025,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52139,
    "c": 0.21227,
    "h": 296.3
  },
  "luminance": 0.12273
}

Semantic roles & 50–950 ramp

primary
#793FD2
secondary
#BDD697
accent
#E543A5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #793FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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