#794DB2#794DB2

#794DB2 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.8% C 0.156 H 301.2°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#794DB2
RGBrgb(121, 77, 178)
HSLhsl(266, 40%, 50%)
HSVhsv(266, 57%, 70%)
CMYKcmyk(32%, 56.7%, 0%, 30.2%)
CIE-LABlab(42.13, 39.57, -47.14)
CIE-LCHlch(42.13, 61.55, 310.01°)
OKLaboklab(51.78% 0.0809 -0.1333)
OKLCHoklch(51.78% 0.156 301.2)
XYZxyz(18.5730, 12.5870, 43.5619)
Luminance0.1259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794DB2 #86B24D
analogous
#4D53B2 #794DB2 #AC4DB2
triadic
#794DB2 #B2794D #4DB279
tetradic
#794DB2 #B24D53 #86B24D #4DB2AC
square
#794DB2 #B24D53 #86B24D #4DB2AC
split-complementary
#794DB2 #B2AC4D #53B24D
monochromatic
#3F285D #5C3B87 #794DB2 #9978C4 #B9A2D7

Accessibility & contrast

On white

5.97
#794DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#794DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #794DB2
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##794DB2#FFFFFF#000000##FFFFFF
##794DB21.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2263B5
Deuteranopia (green-blind)
#3363B0
Tritanopia (blue-blind)
#6E6178
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #794db2;
/* rgb */ color: rgb(121, 77, 178);
/* oklch */ color: oklch(51.8% 0.156 301.2);
Tailwind
colors: {
  custom: {
    50: '#a380ca',
    500: '#794db2',
    950: '#000000',
  },
}
SCSS
$custom: #794db2;
$custom-light: #a380ca;
$custom-dark: #000000;
JSON
{
  "hex": "#794db2",
  "rgb": {
    "r": 121,
    "g": 77,
    "b": 178
  },
  "hsl": {
    "h": 266.139,
    "s": 39.608,
    "l": 50
  },
  "oklch": {
    "l": 0.51784,
    "c": 0.1559,
    "h": 301.2
  },
  "luminance": 0.12587
}

Semantic roles & 50–950 ramp

primary
#794DB2
secondary
#B0C497
accent
#CF589C
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #794DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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