#793BAF#793BAF

#793BAF is a mid, vivid violet. Relative luminance 0.103; OKLCH L 49.0% C 0.179 H 305.2°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#793BAF
RGBrgb(121, 59, 175)
HSLhsl(272, 50%, 46%)
HSVhsv(272, 66%, 69%)
CMYKcmyk(30.9%, 66.3%, 0%, 31.4%)
CIE-LABlab(38.35, 48.45, -51.44)
CIE-LCHlch(38.35, 70.66, 313.28°)
OKLaboklab(48.97% 0.1031 -0.1459)
OKLCHoklch(48.97% 0.179 305.2)
XYZxyz(17.1853, 10.2881, 41.6296)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793BAF #71AF3B
analogous
#3F3BAF #793BAF #AF3BAB
triadic
#793BAF #AF793B #3BAF79
tetradic
#793BAF #AF3F3B #71AF3B #3BABAF
square
#793BAF #AF3F3B #71AF3B #3BABAF
split-complementary
#793BAF #ABAF3B #3BAF3F
monochromatic
#3A1C53 #592C81 #793BAF #975EC9 #B58CD8

Accessibility & contrast

On white

6.87
#793BAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#793BAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #793BAF
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793BAF#FFFFFF#000000##FFFFFF
##793BAF1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B3
Deuteranopia (green-blind)
#1A5AAC
Tritanopia (blue-blind)
#6F5470
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #793baf;
/* rgb */ color: rgb(121, 59, 175);
/* oklch */ color: oklch(49.0% 0.179 305.2);
Tailwind
colors: {
  custom: {
    50: '#a475c8',
    500: '#793baf',
    950: '#000000',
  },
}
SCSS
$custom: #793baf;
$custom-light: #a475c8;
$custom-dark: #000000;
JSON
{
  "hex": "#793baf",
  "rgb": {
    "r": 121,
    "g": 59,
    "b": 175
  },
  "hsl": {
    "h": 272.069,
    "s": 49.573,
    "l": 45.882
  },
  "oklch": {
    "l": 0.48972,
    "c": 0.17862,
    "h": 305.2
  },
  "luminance": 0.10288
}

Semantic roles & 50–950 ramp

primary
#793BAF
secondary
#A1C383
accent
#D94F8F
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #793BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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