#792DB3#792DB3

#792DB3 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.6% C 0.200 H 305.8°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#792DB3
RGBrgb(121, 45, 179)
HSLhsl(274, 60%, 44%)
HSVhsv(274, 75%, 70%)
CMYKcmyk(32.4%, 74.9%, 0%, 29.8%)
CIE-LABlab(36.36, 55.79, -57.05)
CIE-LCHlch(36.36, 79.80, 314.36°)
OKLaboklab(47.64% 0.1171 -0.1623)
OKLCHoklch(47.64% 0.2 305.8)
XYZxyz(16.9584, 9.1965, 43.5208)
Luminance0.0920 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792DB3 #67B32D
analogous
#362DB3 #792DB3 #B32DAA
triadic
#792DB3 #B3792D #2DB379
tetradic
#792DB3 #B3362D #67B32D #2DAAB3
square
#792DB3 #B3362D #67B32D #2DAAB3
split-complementary
#792DB3 #AAB32D #2DB336
monochromatic
#371451 #582182 #792DB3 #984BD2 #B47CDE

Accessibility & contrast

On white

7.40
#792DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#792DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792DB3
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792DB3#FFFFFF#000000##FFFFFF
##792DB31.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B7
Deuteranopia (green-blind)
#0056B0
Tritanopia (blue-blind)
#6F4E6E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #792db3;
/* rgb */ color: rgb(121, 45, 179);
/* oklch */ color: oklch(47.6% 0.200 305.8);
Tailwind
colors: {
  custom: {
    50: '#a56ecb',
    500: '#792db3',
    950: '#000000',
  },
}
SCSS
$custom: #792db3;
$custom-light: #a56ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#792db3",
  "rgb": {
    "r": 121,
    "g": 45,
    "b": 179
  },
  "hsl": {
    "h": 274.03,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47643,
    "c": 0.20009,
    "h": 305.8
  },
  "luminance": 0.09196
}

Semantic roles & 50–950 ramp

primary
#792DB3
secondary
#98C775
accent
#E34589
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #792DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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