#792EB9#792EB9

#792EB9 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.205 H 304.1°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#792EB9
RGBrgb(121, 46, 185)
HSLhsl(272, 60%, 45%)
HSVhsv(272, 75%, 73%)
CMYKcmyk(34.6%, 75.1%, 0%, 27.5%)
CIE-LABlab(36.97, 56.76, -59.61)
CIE-LCHlch(36.97, 82.31, 313.60°)
OKLaboklab(48.22% 0.1149 -0.1698)
OKLCHoklch(48.22% 0.205 304.1)
XYZxyz(17.6171, 9.5218, 46.7993)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792EB9 #6EB92E
analogous
#332EB9 #792EB9 #B92EB3
triadic
#792EB9 #B9792E #2EB979
tetradic
#792EB9 #B9332E #6EB92E #2EB3B9
square
#792EB9 #B9332E #6EB92E #2EB3B9
split-complementary
#792EB9 #B3B92E #2EB933
monochromatic
#391657 #592288 #792EB9 #9751D4 #B482E0

Accessibility & contrast

On white

7.23
#792EB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#792EB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792EB9
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792EB9#FFFFFF#000000##FFFFFF
##792EB91.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#0057B6
Tritanopia (blue-blind)
#6C5172
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #792eb9;
/* rgb */ color: rgb(121, 46, 185);
/* oklch */ color: oklch(48.2% 0.205 304.1);
Tailwind
colors: {
  custom: {
    50: '#a56ecf',
    500: '#792eb9',
    950: '#000000',
  },
}
SCSS
$custom: #792eb9;
$custom-light: #a56ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#792eb9",
  "rgb": {
    "r": 121,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 272.374,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48219,
    "c": 0.20501,
    "h": 304.1
  },
  "luminance": 0.09522
}

Semantic roles & 50–950 ramp

primary
#792EB9
secondary
#9EC97A
accent
#E3448E
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #792EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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