#794CB2#794CB2

#794CB2 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.6% C 0.157 H 301.5°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#794CB2
RGBrgb(121, 76, 178)
HSLhsl(266, 40%, 50%)
HSVhsv(266, 57%, 70%)
CMYKcmyk(32%, 57.3%, 0%, 30.2%)
CIE-LABlab(41.92, 40.13, -47.48)
CIE-LCHlch(41.92, 62.17, 310.20°)
OKLaboklab(51.63% 0.0822 -0.1343)
OKLCHoklch(51.63% 0.157 301.5)
XYZxyz(18.5036, 12.4481, 43.5387)
Luminance0.1245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794CB2 #85B24C
analogous
#4C52B2 #794CB2 #AC4CB2
triadic
#794CB2 #B2794C #4CB279
tetradic
#794CB2 #B24C52 #85B24C #4CB2AC
square
#794CB2 #B24C52 #85B24C #4CB2AC
split-complementary
#794CB2 #B2AC4C #52B24C
monochromatic
#3F275C #5C3A87 #794CB2 #9976C5 #B9A1D7

Accessibility & contrast

On white

6.02
#794CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#794CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #794CB2
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##794CB2#FFFFFF#000000##FFFFFF
##794CB21.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F62B5
Deuteranopia (green-blind)
#3162B0
Tritanopia (blue-blind)
#6E6078
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #794cb2;
/* rgb */ color: rgb(121, 76, 178);
/* oklch */ color: oklch(51.6% 0.157 301.5);
Tailwind
colors: {
  custom: {
    50: '#a380ca',
    500: '#794cb2',
    950: '#000000',
  },
}
SCSS
$custom: #794cb2;
$custom-light: #a380ca;
$custom-dark: #000000;
JSON
{
  "hex": "#794cb2",
  "rgb": {
    "r": 121,
    "g": 76,
    "b": 178
  },
  "hsl": {
    "h": 266.471,
    "s": 40.157,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51627,
    "c": 0.15742,
    "h": 301.5
  },
  "luminance": 0.12448
}

Semantic roles & 50–950 ramp

primary
#794CB2
secondary
#B0C496
accent
#D0589B
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #794CB2

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

Preview Lab → · Contrast checker → · Palette generator →

#794CB2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva