#792BB2#792BB2

#792BB2 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.4% C 0.201 H 306.3°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#792BB2
RGBrgb(121, 43, 178)
HSLhsl(275, 61%, 43%)
HSVhsv(275, 76%, 70%)
CMYKcmyk(32%, 75.8%, 0%, 30.2%)
CIE-LABlab(36.00, 56.38, -57.04)
CIE-LCHlch(36.00, 80.20, 314.67°)
OKLaboklab(47.36% 0.1191 -0.1622)
OKLCHoklch(47.36% 0.201 306.3)
XYZxyz(16.7832, 9.0072, 42.9653)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792BB2 #64B22B
analogous
#362BB2 #792BB2 #B22BA7
triadic
#792BB2 #B2792B #2BB279
tetradic
#792BB2 #B2362B #64B22B #2BA7B2
square
#792BB2 #B2362B #64B22B #2BA7B2
split-complementary
#792BB2 #A7B22B #2BB236
monochromatic
#36134F #571F81 #792BB2 #9848D3 #B479DF

Accessibility & contrast

On white

7.50
#792BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#792BB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792BB2
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792BB2#FFFFFF#000000##FFFFFF
##792BB21.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#0055AF
Tritanopia (blue-blind)
#6F4C6D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #792bb2;
/* rgb */ color: rgb(121, 43, 178);
/* oklch */ color: oklch(47.4% 0.201 306.3);
Tailwind
colors: {
  custom: {
    50: '#a56dca',
    500: '#792bb2',
    950: '#000000',
  },
}
SCSS
$custom: #792bb2;
$custom-light: #a56dca;
$custom-dark: #000000;
JSON
{
  "hex": "#792bb2",
  "rgb": {
    "r": 121,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 274.667,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47364,
    "c": 0.20127,
    "h": 306.3
  },
  "luminance": 0.09007
}

Semantic roles & 50–950 ramp

primary
#792BB2
secondary
#96C772
accent
#E44487
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #792BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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