#792DB2#792DB2

#792DB2 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.6% C 0.199 H 306.1°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#792DB2
RGBrgb(121, 45, 178)
HSLhsl(274, 60%, 44%)
HSVhsv(274, 75%, 70%)
CMYKcmyk(32%, 74.7%, 0%, 30.2%)
CIE-LABlab(36.28, 55.57, -56.58)
CIE-LCHlch(36.28, 79.30, 314.48°)
OKLaboklab(47.57% 0.1173 -0.1609)
OKLCHoklch(47.57% 0.199 306.1)
XYZxyz(16.8577, 9.1562, 42.9901)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792DB2 #66B22D
analogous
#372DB2 #792DB2 #B22DA8
triadic
#792DB2 #B2792D #2DB279
tetradic
#792DB2 #B2372D #66B22D #2DA8B2
square
#792DB2 #B2372D #66B22D #2DA8B2
split-complementary
#792DB2 #A8B22D #2DB237
monochromatic
#371450 #582181 #792DB2 #984BD1 #B47CDE

Accessibility & contrast

On white

7.42
#792DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#792DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792DB2
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792DB2#FFFFFF#000000##FFFFFF
##792DB21.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0056AF
Tritanopia (blue-blind)
#6F4D6D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #792db2;
/* rgb */ color: rgb(121, 45, 178);
/* oklch */ color: oklch(47.6% 0.199 306.1);
Tailwind
colors: {
  custom: {
    50: '#a56eca',
    500: '#792db2',
    950: '#000000',
  },
}
SCSS
$custom: #792db2;
$custom-light: #a56eca;
$custom-dark: #000000;
JSON
{
  "hex": "#792db2",
  "rgb": {
    "r": 121,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 274.286,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47565,
    "c": 0.19909,
    "h": 306.1
  },
  "luminance": 0.09156
}

Semantic roles & 50–950 ramp

primary
#792DB2
secondary
#98C675
accent
#E34589
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #792DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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