#793FB2#793FB2

#793FB2 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.7% C 0.176 H 303.8°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#793FB2
RGBrgb(121, 63, 178)
HSLhsl(270, 48%, 47%)
HSVhsv(270, 65%, 70%)
CMYKcmyk(32%, 64.6%, 0%, 30.2%)
CIE-LABlab(39.30, 47.15, -51.70)
CIE-LCHlch(39.30, 69.97, 312.37°)
OKLaboklab(49.72% 0.0982 -0.1466)
OKLCHoklch(49.72% 0.176 303.8)
XYZxyz(17.6967, 10.8344, 43.2698)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793FB2 #78B23F
analogous
#403FB2 #793FB2 #B23FB2
triadic
#793FB2 #B2793F #3FB279
tetradic
#793FB2 #B2403F #78B23F #3FB2B2
square
#793FB2 #B2403F #78B23F #3FB2B2
split-complementary
#793FB2 #B2B23F #3FB240
monochromatic
#3C1F58 #5A2F85 #793FB2 #9866C9 #B693D9

Accessibility & contrast

On white

6.63
#793FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#793FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #793FB2
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793FB2#FFFFFF#000000##FFFFFF
##793FB21.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#1C5CAF
Tritanopia (blue-blind)
#6E5873
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #793fb2;
/* rgb */ color: rgb(121, 63, 178);
/* oklch */ color: oklch(49.7% 0.176 303.8);
Tailwind
colors: {
  custom: {
    50: '#a478ca',
    500: '#793fb2',
    950: '#000000',
  },
}
SCSS
$custom: #793fb2;
$custom-light: #a478ca;
$custom-dark: #000000;
JSON
{
  "hex": "#793fb2",
  "rgb": {
    "r": 121,
    "g": 63,
    "b": 178
  },
  "hsl": {
    "h": 270.261,
    "s": 47.718,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49719,
    "c": 0.17647,
    "h": 303.8
  },
  "luminance": 0.10834
}

Semantic roles & 50–950 ramp

primary
#793FB2
secondary
#A6C489
accent
#D75093
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #793FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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