#792FAB#792FAB

#792FAB is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.2% C 0.190 H 307.9°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#792FAB
RGBrgb(121, 47, 171)
HSLhsl(276, 57%, 43%)
HSVhsv(276, 73%, 67%)
CMYKcmyk(29.2%, 72.5%, 0%, 32.9%)
CIE-LABlab(36.06, 53.12, -52.77)
CIE-LCHlch(36.06, 74.88, 315.19°)
OKLaboklab(47.24% 0.1166 -0.1497)
OKLCHoklch(47.24% 0.19 307.9)
XYZxyz(16.2508, 9.0385, 39.4087)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792FAB #61AB2F
analogous
#3B2FAB #792FAB #AB2F9F
triadic
#792FAB #AB792F #2FAB79
tetradic
#792FAB #AB3B2F #61AB2F #2F9FAB
square
#792FAB #AB3B2F #61AB2F #2F9FAB
split-complementary
#792FAB #9FAB2F #2FAB3B
monochromatic
#35154B #57227B #792FAB #984ACD #B47ADA

Accessibility & contrast

On white

7.48
#792FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#792FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792FAB
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792FAB#FFFFFF#000000##FFFFFF
##792FAB1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AF
Deuteranopia (green-blind)
#0656A8
Tritanopia (blue-blind)
#714C6A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #792fab;
/* rgb */ color: rgb(121, 47, 171);
/* oklch */ color: oklch(47.2% 0.190 307.9);
Tailwind
colors: {
  custom: {
    50: '#a46ec5',
    500: '#792fab',
    950: '#000000',
  },
}
SCSS
$custom: #792fab;
$custom-light: #a46ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#792fab",
  "rgb": {
    "r": 121,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 275.806,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47241,
    "c": 0.18976,
    "h": 307.9
  },
  "luminance": 0.09038
}

Semantic roles & 50–950 ramp

primary
#792FAB
secondary
#93C373
accent
#E04885
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #792FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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