#792EB5#792EB5

#792EB5 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.9% C 0.201 H 305.2°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#792EB5
RGBrgb(121, 46, 181)
HSLhsl(273, 59%, 45%)
HSVhsv(273, 75%, 71%)
CMYKcmyk(33.1%, 74.6%, 0%, 29%)
CIE-LABlab(36.66, 55.84, -57.75)
CIE-LCHlch(36.66, 80.33, 314.04°)
OKLaboklab(47.9% 0.1157 -0.1643)
OKLCHoklch(47.9% 0.201 305.2)
XYZxyz(17.2008, 9.3552, 44.6067)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792EB5 #6AB52E
analogous
#352EB5 #792EB5 #B52EAE
triadic
#792EB5 #B5792E #2EB579
tetradic
#792EB5 #B5352E #6AB52E #2EAEB5
square
#792EB5 #B5352E #6AB52E #2EAEB5
split-complementary
#792EB5 #AEB52E #2EB535
monochromatic
#381553 #582284 #792EB5 #974ED2 #B47FDE

Accessibility & contrast

On white

7.31
#792EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#792EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792EB5
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792EB5#FFFFFF#000000##FFFFFF
##792EB51.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0056B2
Tritanopia (blue-blind)
#6E4F6F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #792eb5;
/* rgb */ color: rgb(121, 46, 181);
/* oklch */ color: oklch(47.9% 0.201 305.2);
Tailwind
colors: {
  custom: {
    50: '#a56ecc',
    500: '#792eb5',
    950: '#000000',
  },
}
SCSS
$custom: #792eb5;
$custom-light: #a56ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#792eb5",
  "rgb": {
    "r": 121,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 273.333,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47903,
    "c": 0.20099,
    "h": 305.2
  },
  "luminance": 0.09355
}

Semantic roles & 50–950 ramp

primary
#792EB5
secondary
#9BC778
accent
#E3458B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #792EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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