#793DB2#793DB2

#793DB2 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.5% C 0.179 H 304.1°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#793DB2
RGBrgb(121, 61, 178)
HSLhsl(271, 49%, 47%)
HSVhsv(271, 66%, 70%)
CMYKcmyk(32%, 65.7%, 0%, 30.2%)
CIE-LABlab(38.93, 48.17, -52.30)
CIE-LCHlch(38.93, 71.10, 312.65°)
OKLaboklab(49.45% 0.1005 -0.1484)
OKLCHoklch(49.45% 0.179 304.1)
XYZxyz(17.5880, 10.6168, 43.2335)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793DB2 #76B23D
analogous
#3E3DB2 #793DB2 #B23DB1
triadic
#793DB2 #B2793D #3DB279
tetradic
#793DB2 #B23E3D #76B23D #3DB1B2
square
#793DB2 #B23E3D #76B23D #3DB1B2
split-complementary
#793DB2 #B1B23D #3DB23E
monochromatic
#3B1E57 #5A2D84 #793DB2 #9763C9 #B690D9

Accessibility & contrast

On white

6.72
#793DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#793DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #793DB2
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793DB2#FFFFFF#000000##FFFFFF
##793DB21.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#185CAF
Tritanopia (blue-blind)
#6E5672
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #793db2;
/* rgb */ color: rgb(121, 61, 178);
/* oklch */ color: oklch(49.5% 0.179 304.1);
Tailwind
colors: {
  custom: {
    50: '#a476ca',
    500: '#793db2',
    950: '#000000',
  },
}
SCSS
$custom: #793db2;
$custom-light: #a476ca;
$custom-dark: #000000;
JSON
{
  "hex": "#793db2",
  "rgb": {
    "r": 121,
    "g": 61,
    "b": 178
  },
  "hsl": {
    "h": 270.769,
    "s": 48.954,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49451,
    "c": 0.17923,
    "h": 304.1
  },
  "luminance": 0.10617
}

Semantic roles & 50–950 ramp

primary
#793DB2
secondary
#A5C487
accent
#D94F92
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #793DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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