#792EA7#792EA7

#792EA7 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.8% C 0.187 H 309.2°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#792EA7
RGBrgb(121, 46, 167)
HSLhsl(277, 57%, 42%)
HSVhsv(277, 72%, 65%)
CMYKcmyk(27.5%, 72.5%, 0%, 34.5%)
CIE-LABlab(35.61, 52.65, -51.10)
CIE-LCHlch(35.61, 73.37, 315.86°)
OKLaboklab(46.83% 0.1182 -0.1448)
OKLCHoklch(46.83% 0.187 309.2)
XYZxyz(15.8358, 8.8093, 37.4179)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792EA7 #5CA72E
analogous
#3C2EA7 #792EA7 #A72E99
triadic
#792EA7 #A7792E #2EA779
tetradic
#792EA7 #A73C2E #5CA72E #2E99A7
square
#792EA7 #A73C2E #5CA72E #2E99A7
split-complementary
#792EA7 #99A72E #2EA73C
monochromatic
#331447 #562177 #792EA7 #9946CC #B476D9

Accessibility & contrast

On white

7.60
#792EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#792EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792EA7
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792EA7#FFFFFF#000000##FFFFFF
##792EA71.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#1155A4
Tritanopia (blue-blind)
#724968
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #792ea7;
/* rgb */ color: rgb(121, 46, 167);
/* oklch */ color: oklch(46.8% 0.187 309.2);
Tailwind
colors: {
  custom: {
    50: '#a46ec2',
    500: '#792ea7',
    950: '#000000',
  },
}
SCSS
$custom: #792ea7;
$custom-light: #a46ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#792ea7",
  "rgb": {
    "r": 121,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 277.19,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46834,
    "c": 0.18692,
    "h": 309.2
  },
  "luminance": 0.08809
}

Semantic roles & 50–950 ramp

primary
#792EA7
secondary
#8FC170
accent
#E04882
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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