#792ED7#792ED7

#792ED7 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.7% C 0.235 H 297.1°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#792ED7
RGBrgb(121, 46, 215)
HSLhsl(267, 68%, 51%)
HSVhsv(267, 79%, 84%)
CMYKcmyk(43.7%, 78.6%, 0%, 15.7%)
CIE-LABlab(39.45, 63.84, -73.03)
CIE-LCHlch(39.45, 97.00, 311.16°)
OKLaboklab(50.72% 0.1071 -0.2092)
OKLCHoklch(50.72% 0.235 297.1)
XYZxyz(21.1247, 10.9248, 65.2725)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792ED7 #8CD72E
analogous
#2E37D7 #792ED7 #CD2ED7
triadic
#792ED7 #D7792E #2ED779
tetradic
#792ED7 #D72E37 #8CD72E #2ED7CD
square
#792ED7 #D72E37 #8CD72E #2ED7CD
split-complementary
#792ED7 #D7CD2E #37D72E
monochromatic
#401674 #5C20A8 #792ED7 #9A61E1 #BB95EB

Accessibility & contrast

On white

6.59
#792ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#792ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #792ED7
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792ED7#FFFFFF#000000##FFFFFF
##792ED71.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDC
Deuteranopia (green-blind)
#005BD4
Tritanopia (blue-blind)
#605E83
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #792ed7;
/* rgb */ color: rgb(121, 46, 215);
/* oklch */ color: oklch(50.7% 0.235 297.1);
Tailwind
colors: {
  custom: {
    50: '#a870e5',
    500: '#792ed7',
    950: '#000000',
  },
}
SCSS
$custom: #792ed7;
$custom-light: #a870e5;
$custom-dark: #000000;
JSON
{
  "hex": "#792ed7",
  "rgb": {
    "r": 121,
    "g": 46,
    "b": 215
  },
  "hsl": {
    "h": 266.627,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.50723,
    "c": 0.23502,
    "h": 297.1
  },
  "luminance": 0.10925
}

Semantic roles & 50–950 ramp

primary
#792ED7
secondary
#B5D68B
accent
#EB3D9E
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#110816
muted
#807B84

Preview Lab

Preview with #792ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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