#792FB2#792FB2

#792FB2 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.8% C 0.197 H 305.9°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#792FB2
RGBrgb(121, 47, 178)
HSLhsl(274, 58%, 44%)
HSVhsv(274, 74%, 70%)
CMYKcmyk(32%, 73.6%, 0%, 30.2%)
CIE-LABlab(36.58, 54.72, -56.10)
CIE-LCHlch(36.58, 78.37, 314.29°)
OKLaboklab(47.77% 0.1154 -0.1595)
OKLCHoklch(47.77% 0.197 305.9)
XYZxyz(16.9358, 9.3125, 43.0161)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792FB2 #68B22F
analogous
#382FB2 #792FB2 #B22FAA
triadic
#792FB2 #B2792F #2FB279
tetradic
#792FB2 #B2382F #68B22F #2FAAB2
square
#792FB2 #B2382F #68B22F #2FAAB2
split-complementary
#792FB2 #AAB22F #2FB238
monochromatic
#371551 #582282 #792FB2 #984ED0 #B47EDD

Accessibility & contrast

On white

7.34
#792FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#792FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792FB2
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792FB2#FFFFFF#000000##FFFFFF
##792FB21.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0056AF
Tritanopia (blue-blind)
#6F4E6E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #792fb2;
/* rgb */ color: rgb(121, 47, 178);
/* oklch */ color: oklch(47.8% 0.197 305.9);
Tailwind
colors: {
  custom: {
    50: '#a56fca',
    500: '#792fb2',
    950: '#000000',
  },
}
SCSS
$custom: #792fb2;
$custom-light: #a56fca;
$custom-dark: #000000;
JSON
{
  "hex": "#792fb2",
  "rgb": {
    "r": 121,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 273.893,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47774,
    "c": 0.19684,
    "h": 305.9
  },
  "luminance": 0.09312
}

Semantic roles & 50–950 ramp

primary
#792FB2
secondary
#99C677
accent
#E1468A
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #792FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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