#792BA8#792BA8

#792BA8 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.6% C 0.191 H 309.2°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#792BA8
RGBrgb(121, 43, 168)
HSLhsl(277, 59%, 41%)
HSVhsv(277, 74%, 66%)
CMYKcmyk(28%, 74.4%, 0%, 34.1%)
CIE-LABlab(35.24, 54.14, -52.30)
CIE-LCHlch(35.24, 75.28, 315.99°)
OKLaboklab(46.59% 0.1211 -0.1483)
OKLCHoklch(46.59% 0.191 309.2)
XYZxyz(15.8155, 8.6202, 37.8689)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792BA8 #5AA82B
analogous
#3B2BA8 #792BA8 #A82B99
triadic
#792BA8 #A8792B #2BA879
tetradic
#792BA8 #A83B2B #5AA82B #2B99A8
square
#792BA8 #A83B2B #5AA82B #2B99A8
split-complementary
#792BA8 #99A82B #2BA83B
monochromatic
#331247 #561F77 #792BA8 #9A42CF #B472DB

Accessibility & contrast

On white

7.71
#792BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#792BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792BA8
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792BA8#FFFFFF#000000##FFFFFF
##792BA81.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AC
Deuteranopia (green-blind)
#0654A5
Tritanopia (blue-blind)
#724867
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #792ba8;
/* rgb */ color: rgb(121, 43, 168);
/* oklch */ color: oklch(46.6% 0.191 309.2);
Tailwind
colors: {
  custom: {
    50: '#a46cc3',
    500: '#792ba8',
    950: '#000000',
  },
}
SCSS
$custom: #792ba8;
$custom-light: #a46cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#792ba8",
  "rgb": {
    "r": 121,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 277.44,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46594,
    "c": 0.19143,
    "h": 309.2
  },
  "luminance": 0.0862
}

Semantic roles & 50–950 ramp

primary
#792BA8
secondary
#8DC26C
accent
#E24580
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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