#792DBC#792DBC

#792DBC is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.4% C 0.209 H 303.4°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#792DBC
RGBrgb(121, 45, 188)
HSLhsl(272, 61%, 46%)
HSVhsv(272, 76%, 74%)
CMYKcmyk(35.6%, 76.1%, 0%, 26.3%)
CIE-LABlab(37.06, 57.87, -61.22)
CIE-LCHlch(37.06, 84.24, 313.39°)
OKLaboklab(48.36% 0.1151 -0.1745)
OKLCHoklch(48.36% 0.209 303.4)
XYZxyz(17.8985, 9.5726, 48.4719)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792DBC #70BC2D
analogous
#312DBC #792DBC #BC2DB7
triadic
#792DBC #BC792D #2DBC79
tetradic
#792DBC #BC312D #70BC2D #2DB7BC
square
#792DBC #BC312D #70BC2D #2DB7BC
split-complementary
#792DBC #B7BC2D #2DBC31
monochromatic
#391559 #59218B #792DBC #9751D5 #B582E1

Accessibility & contrast

On white

7.21
#792DBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#792DBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792DBC
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792DBC#FFFFFF#000000##FFFFFF
##792DBC1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C0
Deuteranopia (green-blind)
#0057B9
Tritanopia (blue-blind)
#6B5273
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #792dbc;
/* rgb */ color: rgb(121, 45, 188);
/* oklch */ color: oklch(48.4% 0.209 303.4);
Tailwind
colors: {
  custom: {
    50: '#a66ed1',
    500: '#792dbc',
    950: '#000000',
  },
}
SCSS
$custom: #792dbc;
$custom-light: #a66ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#792dbc",
  "rgb": {
    "r": 121,
    "g": 45,
    "b": 188
  },
  "hsl": {
    "h": 271.888,
    "s": 61.373,
    "l": 45.686
  },
  "oklch": {
    "l": 0.48359,
    "c": 0.20907,
    "h": 303.4
  },
  "luminance": 0.09573
}

Semantic roles & 50–950 ramp

primary
#792DBC
secondary
#A0CA7B
accent
#E4438F
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #792DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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