#792FB8#792FB8

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

Color values

HEX#792FB8
RGBrgb(121, 47, 184)
HSLhsl(272, 59%, 45%)
HSVhsv(272, 74%, 72%)
CMYKcmyk(34.2%, 74.5%, 0%, 27.8%)
CIE-LABlab(37.04, 56.11, -58.91)
CIE-LCHlch(37.04, 81.35, 313.61°)
OKLaboklab(48.24% 0.1142 -0.1677)
OKLCHoklch(48.24% 0.203 304.2)
XYZxyz(17.5514, 9.5587, 46.2585)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792FB8 #6EB82F
analogous
#352FB8 #792FB8 #B82FB2
triadic
#792FB8 #B8792F #2FB879
tetradic
#792FB8 #B8352F #6EB82F #2FB2B8
square
#792FB8 #B8352F #6EB82F #2FB2B8
split-complementary
#792FB8 #B2B82F #2FB835
monochromatic
#391657 #592387 #792FB8 #9752D3 #B482DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##792FB8#FFFFFF#000000##FFFFFF
##792FB81.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)
#0055BC
Deuteranopia (green-blind)
#0057B5
Tritanopia (blue-blind)
#6D5171
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #792fb8;
/* rgb */ color: rgb(121, 47, 184);
/* oklch */ color: oklch(48.2% 0.203 304.2);
Tailwind
colors: {
  custom: {
    50: '#a56fce',
    500: '#792fb8',
    950: '#000000',
  },
}
SCSS
$custom: #792fb8;
$custom-light: #a56fce;
$custom-dark: #000000;
JSON
{
  "hex": "#792fb8",
  "rgb": {
    "r": 121,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 272.409,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48243,
    "c": 0.20292,
    "h": 304.2
  },
  "luminance": 0.09559
}

Semantic roles & 50–950 ramp

primary
#792FB8
secondary
#9EC87B
accent
#E2458E
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #792FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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