#792CBB#792CBB

#792CBB is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.209 H 303.8°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#792CBB
RGBrgb(121, 44, 187)
HSLhsl(272, 62%, 45%)
HSVhsv(272, 76%, 73%)
CMYKcmyk(35.3%, 76.5%, 0%, 26.7%)
CIE-LABlab(36.84, 58.04, -60.99)
CIE-LCHlch(36.84, 84.19, 313.58°)
OKLaboklab(48.18% 0.1162 -0.1738)
OKLCHoklch(48.18% 0.209 303.8)
XYZxyz(17.7534, 9.4542, 47.8936)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792CBB #6EBB2C
analogous
#322CBB #792CBB #BB2CB5
triadic
#792CBB #BB792C #2CBB79
tetradic
#792CBB #BB322C #6EBB2C #2CB5BB
square
#792CBB #BB322C #6EBB2C #2CB5BB
split-complementary
#792CBB #B5BB2C #2CBB32
monochromatic
#391558 #592089 #792CBB #974FD6 #B480E1

Accessibility & contrast

On white

7.26
#792CBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#792CBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792CBB
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792CBB#FFFFFF#000000##FFFFFF
##792CBB1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BF
Deuteranopia (green-blind)
#0056B8
Tritanopia (blue-blind)
#6C5172
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #792cbb;
/* rgb */ color: rgb(121, 44, 187);
/* oklch */ color: oklch(48.2% 0.209 303.8);
Tailwind
colors: {
  custom: {
    50: '#a66ed0',
    500: '#792cbb',
    950: '#000000',
  },
}
SCSS
$custom: #792cbb;
$custom-light: #a66ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#792cbb",
  "rgb": {
    "r": 121,
    "g": 44,
    "b": 187
  },
  "hsl": {
    "h": 272.308,
    "s": 61.905,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4818,
    "c": 0.20911,
    "h": 303.8
  },
  "luminance": 0.09454
}

Semantic roles & 50–950 ramp

primary
#792CBB
secondary
#9ECA79
accent
#E5438E
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #792CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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