#794FB2#794FB2

#794FB2 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.1% C 0.153 H 300.8°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#794FB2
RGBrgb(121, 79, 178)
HSLhsl(265, 39%, 50%)
HSVhsv(265, 56%, 70%)
CMYKcmyk(32%, 55.6%, 0%, 30.2%)
CIE-LABlab(42.57, 38.43, -46.44)
CIE-LCHlch(42.57, 60.28, 309.61°)
OKLaboklab(52.1% 0.0783 -0.1312)
OKLCHoklch(52.1% 0.153 300.8)
XYZxyz(18.7151, 12.8712, 43.6093)
Luminance0.1287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794FB2 #88B24F
analogous
#4F56B2 #794FB2 #AB4FB2
triadic
#794FB2 #B2794F #4FB279
tetradic
#794FB2 #B24F56 #88B24F #4FB2AB
square
#794FB2 #B24F56 #88B24F #4FB2AB
split-complementary
#794FB2 #B2AB4F #56B24F
monochromatic
#3F295E #5C3C88 #794FB2 #997AC5 #BAA4D7

Accessibility & contrast

On white

5.88
#794FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#794FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #794FB2
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##794FB2#FFFFFF#000000##FFFFFF
##794FB21.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2764B5
Deuteranopia (green-blind)
#3564B0
Tritanopia (blue-blind)
#6E6379
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #794fb2;
/* rgb */ color: rgb(121, 79, 178);
/* oklch */ color: oklch(52.1% 0.153 300.8);
Tailwind
colors: {
  custom: {
    50: '#a382c9',
    500: '#794fb2',
    950: '#000000',
  },
}
SCSS
$custom: #794fb2;
$custom-light: #a382c9;
$custom-dark: #000000;
JSON
{
  "hex": "#794fb2",
  "rgb": {
    "r": 121,
    "g": 79,
    "b": 178
  },
  "hsl": {
    "h": 265.455,
    "s": 39.13,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52104,
    "c": 0.15281,
    "h": 300.8
  },
  "luminance": 0.12871
}

Semantic roles & 50–950 ramp

primary
#794FB2
secondary
#B2C498
accent
#CF599D
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #794FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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