#792EB2#792EB2

#792EB2 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.7% C 0.198 H 306.0°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#792EB2
RGBrgb(121, 46, 178)
HSLhsl(274, 59%, 44%)
HSVhsv(274, 74%, 70%)
CMYKcmyk(32%, 74.2%, 0%, 30.2%)
CIE-LABlab(36.43, 55.15, -56.34)
CIE-LCHlch(36.43, 78.84, 314.39°)
OKLaboklab(47.67% 0.1163 -0.1602)
OKLCHoklch(47.67% 0.198 306)
XYZxyz(16.8963, 9.2334, 43.0030)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792EB2 #67B22E
analogous
#372EB2 #792EB2 #B22EA9
triadic
#792EB2 #B2792E #2EB279
tetradic
#792EB2 #B2372E #67B22E #2EA9B2
square
#792EB2 #B2372E #67B22E #2EA9B2
split-complementary
#792EB2 #A9B22E #2EB237
monochromatic
#371551 #582181 #792EB2 #984CD1 #B47DDD

Accessibility & contrast

On white

7.38
#792EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#792EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792EB2
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792EB2#FFFFFF#000000##FFFFFF
##792EB21.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #792eb2;
/* rgb */ color: rgb(121, 46, 178);
/* oklch */ color: oklch(47.7% 0.198 306.0);
Tailwind
colors: {
  custom: {
    50: '#a56eca',
    500: '#792eb2',
    950: '#000000',
  },
}
SCSS
$custom: #792eb2;
$custom-light: #a56eca;
$custom-dark: #000000;
JSON
{
  "hex": "#792eb2",
  "rgb": {
    "r": 121,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 274.091,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47669,
    "c": 0.19797,
    "h": 306
  },
  "luminance": 0.09233
}

Semantic roles & 50–950 ramp

primary
#792EB2
secondary
#98C676
accent
#E24689
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #792EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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