#794DBA#794DBA

#794DBA is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.3% C 0.166 H 299.2°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#794DBA
RGBrgb(121, 77, 186)
HSLhsl(264, 44%, 52%)
HSVhsv(264, 59%, 73%)
CMYKcmyk(34.9%, 58.6%, 0%, 27.1%)
CIE-LABlab(42.64, 41.64, -51.02)
CIE-LCHlch(42.64, 65.86, 309.21°)
OKLaboklab(52.32% 0.0809 -0.1447)
OKLCHoklch(52.32% 0.166 299.2)
XYZxyz(19.3998, 12.9177, 47.9161)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794DBA #8EBA4D
analogous
#4D58BA #794DBA #B04DBA
triadic
#794DBA #BA794D #4DBA79
tetradic
#794DBA #BA4D58 #8EBA4D #4DBAB0
square
#794DBA #BA4D58 #8EBA4D #4DBAB0
split-complementary
#794DBA #BAB04D #58BA4D
monochromatic
#402765 #5C3891 #794DBA #9A79CB #BBA5DC

Accessibility & contrast

On white

5.86
#794DBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#794DBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #794DBA
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##794DBA#FFFFFF#000000##FFFFFF
##794DBA1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1365BE
Deuteranopia (green-blind)
#2964B8
Tritanopia (blue-blind)
#6B647C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #794dba;
/* rgb */ color: rgb(121, 77, 186);
/* oklch */ color: oklch(52.3% 0.166 299.2);
Tailwind
colors: {
  custom: {
    50: '#a481cf',
    500: '#794dba',
    950: '#000000',
  },
}
SCSS
$custom: #794dba;
$custom-light: #a481cf;
$custom-dark: #000000;
JSON
{
  "hex": "#794dba",
  "rgb": {
    "r": 121,
    "g": 77,
    "b": 186
  },
  "hsl": {
    "h": 264.22,
    "s": 44.13,
    "l": 51.569
  },
  "oklch": {
    "l": 0.52317,
    "c": 0.16577,
    "h": 299.2
  },
  "luminance": 0.12918
}

Semantic roles & 50–950 ramp

primary
#794DBA
secondary
#B6C999
accent
#D454A0
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #794DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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