#793EA5#793EA5

#793EA5 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.7% C 0.163 H 307.8°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#793EA5
RGBrgb(121, 62, 165)
HSLhsl(274, 45%, 45%)
HSVhsv(274, 62%, 65%)
CMYKcmyk(26.7%, 62.4%, 0%, 35.3%)
CIE-LABlab(38.25, 44.52, -45.66)
CIE-LCHlch(38.25, 63.77, 314.28°)
OKLaboklab(48.68% 0.1001 -0.1289)
OKLCHoklch(48.68% 0.163 307.8)
XYZxyz(16.3979, 10.2270, 36.7002)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793EA5 #6AA53E
analogous
#463EA5 #793EA5 #A53E9E
triadic
#793EA5 #A5793E #3EA579
tetradic
#793EA5 #A5463E #6AA53E #3E9EA5
square
#793EA5 #A5463E #6AA53E #3E9EA5
split-complementary
#793EA5 #9EA53E #3EA546
monochromatic
#381D4C #582D79 #793EA5 #975EC2 #B48AD3

Accessibility & contrast

On white

6.90
#793EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#793EA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #793EA5
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793EA5#FFFFFF#000000##FFFFFF
##793EA51.006.903.056.90
#FFFFFF6.901.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0958A8
Deuteranopia (green-blind)
#2D5BA3
Tritanopia (blue-blind)
#72526C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #793ea5;
/* rgb */ color: rgb(121, 62, 165);
/* oklch */ color: oklch(48.7% 0.163 307.8);
Tailwind
colors: {
  custom: {
    50: '#a377c0',
    500: '#793ea5',
    950: '#000000',
  },
}
SCSS
$custom: #793ea5;
$custom-light: #a377c0;
$custom-dark: #000000;
JSON
{
  "hex": "#793ea5",
  "rgb": {
    "r": 121,
    "g": 62,
    "b": 165
  },
  "hsl": {
    "h": 274.369,
    "s": 45.374,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48682,
    "c": 0.1632,
    "h": 307.8
  },
  "luminance": 0.10227
}

Semantic roles & 50–950 ramp

primary
#793EA5
secondary
#9BBE81
accent
#D5538A
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#0F0912
muted
#7F7B81

Preview Lab

Preview with #793EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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