#793BB2#793BB2

#793BB2 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.2% C 0.182 H 304.4°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#793BB2
RGBrgb(121, 59, 178)
HSLhsl(271, 50%, 46%)
HSVhsv(271, 67%, 70%)
CMYKcmyk(32%, 66.9%, 0%, 30.2%)
CIE-LABlab(38.56, 49.17, -52.88)
CIE-LCHlch(38.56, 72.21, 312.91°)
OKLaboklab(49.19% 0.1028 -0.1501)
OKLCHoklch(49.19% 0.182 304.4)
XYZxyz(17.4832, 10.4073, 43.1986)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793BB2 #74B23B
analogous
#3E3BB2 #793BB2 #B23BB0
triadic
#793BB2 #B2793B #3BB279
tetradic
#793BB2 #B23E3B #74B23B #3BB0B2
square
#793BB2 #B23E3B #74B23B #3BB0B2
split-complementary
#793BB2 #B0B23B #3BB23E
monochromatic
#3B1D56 #5A2C84 #793BB2 #9760CA #B58EDA

Accessibility & contrast

On white

6.82
#793BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#793BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #793BB2
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793BB2#FFFFFF#000000##FFFFFF
##793BB21.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B6
Deuteranopia (green-blind)
#135BAF
Tritanopia (blue-blind)
#6E5571
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #793bb2;
/* rgb */ color: rgb(121, 59, 178);
/* oklch */ color: oklch(49.2% 0.182 304.4);
Tailwind
colors: {
  custom: {
    50: '#a475ca',
    500: '#793bb2',
    950: '#000000',
  },
}
SCSS
$custom: #793bb2;
$custom-light: #a475ca;
$custom-dark: #000000;
JSON
{
  "hex": "#793bb2",
  "rgb": {
    "r": 121,
    "g": 59,
    "b": 178
  },
  "hsl": {
    "h": 271.261,
    "s": 50.211,
    "l": 46.471
  },
  "oklch": {
    "l": 0.49189,
    "c": 0.18192,
    "h": 304.4
  },
  "luminance": 0.10407
}

Semantic roles & 50–950 ramp

primary
#793BB2
secondary
#A3C485
accent
#DA4E91
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #793BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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