#792DC7#792DC7

#792DC7 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.3% C 0.220 H 300.7°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#792DC7
RGBrgb(121, 45, 199)
HSLhsl(270, 63%, 48%)
HSVhsv(270, 77%, 78%)
CMYKcmyk(39.2%, 77.4%, 0%, 22%)
CIE-LABlab(37.96, 60.44, -66.21)
CIE-LCHlch(37.96, 89.64, 312.39°)
OKLaboklab(49.26% 0.1124 -0.1892)
OKLCHoklch(49.26% 0.22 300.7)
XYZxyz(19.1298, 10.0651, 54.9567)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792DC7 #7BC72D
analogous
#2D2EC7 #792DC7 #C62DC7
triadic
#792DC7 #C7792D #2DC779
tetradic
#792DC7 #C72D2E #7BC72D #2DC7C6
square
#792DC7 #C72D2E #7BC72D #2DC7C6
split-complementary
#792DC7 #C7C62D #2EC72D
monochromatic
#3C1663 #5B2295 #792DC7 #9858D9 #B78AE5

Accessibility & contrast

On white

6.97
#792DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#792DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #792DC7
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792DC7#FFFFFF#000000##FFFFFF
##792DC71.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CB
Deuteranopia (green-blind)
#0058C4
Tritanopia (blue-blind)
#675679
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #792dc7;
/* rgb */ color: rgb(121, 45, 199);
/* oklch */ color: oklch(49.3% 0.220 300.7);
Tailwind
colors: {
  custom: {
    50: '#a76fd9',
    500: '#792dc7',
    950: '#000000',
  },
}
SCSS
$custom: #792dc7;
$custom-light: #a76fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#792dc7",
  "rgb": {
    "r": 121,
    "g": 45,
    "b": 199
  },
  "hsl": {
    "h": 269.61,
    "s": 63.115,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49263,
    "c": 0.22002,
    "h": 300.7
  },
  "luminance": 0.10065
}

Semantic roles & 50–950 ramp

primary
#792DC7
secondary
#A8CE81
accent
#E64295
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #792DC7

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

Preview Lab → · Contrast checker → · Palette generator →

#792DC7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva