#792EBA#792EBA

#792EBA is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.3% C 0.206 H 303.8°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#792EBA
RGBrgb(121, 46, 186)
HSLhsl(272, 60%, 45%)
HSVhsv(272, 75%, 73%)
CMYKcmyk(34.9%, 75.3%, 0%, 27.1%)
CIE-LABlab(37.05, 56.99, -60.07)
CIE-LCHlch(37.05, 82.81, 313.50°)
OKLaboklab(48.3% 0.1147 -0.1711)
OKLCHoklch(48.3% 0.206 303.8)
XYZxyz(17.7230, 9.5641, 47.3572)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792EBA #6FBA2E
analogous
#332EBA #792EBA #BA2EB5
triadic
#792EBA #BA792E #2EBA79
tetradic
#792EBA #BA332E #6FBA2E #2EB5BA
square
#792EBA #BA332E #6FBA2E #2EB5BA
split-complementary
#792EBA #B5BA2E #2EBA33
monochromatic
#391658 #592289 #792EBA #9751D4 #B582E0

Accessibility & contrast

On white

7.21
#792EBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#792EBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792EBA
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792EBA#FFFFFF#000000##FFFFFF
##792EBA1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0057B7
Tritanopia (blue-blind)
#6C5172
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #792eba;
/* rgb */ color: rgb(121, 46, 186);
/* oklch */ color: oklch(48.3% 0.206 303.8);
Tailwind
colors: {
  custom: {
    50: '#a56ed0',
    500: '#792eba',
    950: '#000000',
  },
}
SCSS
$custom: #792eba;
$custom-light: #a56ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#792eba",
  "rgb": {
    "r": 121,
    "g": 46,
    "b": 186
  },
  "hsl": {
    "h": 272.143,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48299,
    "c": 0.20601,
    "h": 303.8
  },
  "luminance": 0.09564
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #792EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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