#792DB1#792DB1

#792DB1 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.5% C 0.198 H 306.4°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#792DB1
RGBrgb(121, 45, 177)
HSLhsl(275, 59%, 44%)
HSVhsv(275, 75%, 69%)
CMYKcmyk(31.6%, 74.6%, 0%, 30.6%)
CIE-LABlab(36.21, 55.34, -56.11)
CIE-LCHlch(36.21, 78.81, 314.60°)
OKLaboklab(47.49% 0.1175 -0.1595)
OKLCHoklch(47.49% 0.198 306.4)
XYZxyz(16.7576, 9.1162, 42.4632)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792DB1 #65B12D
analogous
#372DB1 #792DB1 #B12DA7
triadic
#792DB1 #B1792D #2DB179
tetradic
#792DB1 #B1372D #65B12D #2DA7B1
square
#792DB1 #B1372D #65B12D #2DA7B1
split-complementary
#792DB1 #A7B12D #2DB137
monochromatic
#36144F #582180 #792DB1 #984AD1 #B47BDD

Accessibility & contrast

On white

7.44
#792DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#792DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792DB1
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792DB1#FFFFFF#000000##FFFFFF
##792DB11.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #792db1;
/* rgb */ color: rgb(121, 45, 177);
/* oklch */ color: oklch(47.5% 0.198 306.4);
Tailwind
colors: {
  custom: {
    50: '#a56ec9',
    500: '#792db1',
    950: '#000000',
  },
}
SCSS
$custom: #792db1;
$custom-light: #a56ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#792db1",
  "rgb": {
    "r": 121,
    "g": 45,
    "b": 177
  },
  "hsl": {
    "h": 274.545,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47488,
    "c": 0.19809,
    "h": 306.4
  },
  "luminance": 0.09116
}

Semantic roles & 50–950 ramp

primary
#792DB1
secondary
#97C674
accent
#E34588
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #792DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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