#792FB1#792FB1

#792FB1 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.7% C 0.196 H 306.2°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#792FB1
RGBrgb(121, 47, 177)
HSLhsl(274, 58%, 44%)
HSVhsv(274, 73%, 69%)
CMYKcmyk(31.6%, 73.4%, 0%, 30.6%)
CIE-LABlab(36.50, 54.49, -55.63)
CIE-LCHlch(36.50, 77.87, 314.41°)
OKLaboklab(47.7% 0.1156 -0.1581)
OKLCHoklch(47.7% 0.196 306.2)
XYZxyz(16.8357, 9.2725, 42.4893)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792FB1 #67B12F
analogous
#382FB1 #792FB1 #B12FA8
triadic
#792FB1 #B1792F #2FB179
tetradic
#792FB1 #B1382F #67B12F #2FA8B1
square
#792FB1 #B1382F #67B12F #2FA8B1
split-complementary
#792FB1 #A8B12F #2FB138
monochromatic
#371550 #582281 #792FB1 #984DD0 #B47EDD

Accessibility & contrast

On white

7.36
#792FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#792FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792FB1
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792FB1#FFFFFF#000000##FFFFFF
##792FB11.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0056AE
Tritanopia (blue-blind)
#6F4E6D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #792fb1;
/* rgb */ color: rgb(121, 47, 177);
/* oklch */ color: oklch(47.7% 0.196 306.2);
Tailwind
colors: {
  custom: {
    50: '#a56fc9',
    500: '#792fb1',
    950: '#000000',
  },
}
SCSS
$custom: #792fb1;
$custom-light: #a56fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#792fb1",
  "rgb": {
    "r": 121,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 274.154,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47697,
    "c": 0.19583,
    "h": 306.2
  },
  "luminance": 0.09272
}

Semantic roles & 50–950 ramp

primary
#792FB1
secondary
#98C576
accent
#E14789
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #792FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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