#796AC2#796AC2

#796AC2 is a mid, vivid violet. Relative luminance 0.183; OKLCH L 57.8% C 0.132 H 289.4°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#796AC2
RGBrgb(121, 106, 194)
HSLhsl(250, 42%, 59%)
HSVhsv(250, 45%, 76%)
CMYKcmyk(37.6%, 45.4%, 0%, 23.9%)
CIE-LABlab(49.82, 26.85, -44.20)
CIE-LCHlch(49.82, 51.71, 301.28°)
OKLaboklab(57.81% 0.044 -0.1247)
OKLCHoklch(57.81% 0.132 289.4)
XYZxyz(22.7742, 18.2674, 53.3545)
Luminance0.1827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796AC2 #B3C26A
analogous
#6A87C2 #796AC2 #A56AC2
triadic
#796AC2 #C2796A #6AC279
tetradic
#796AC2 #C26A87 #B3C26A #6AC2A5
square
#796AC2 #C26A87 #B3C26A #6AC2A5
split-complementary
#796AC2 #C2A56A #87C26A
monochromatic
#40347E #5645A9 #796AC2 #A095D4 #C7C1E6

Accessibility & contrast

On white

4.51
#796AC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#796AC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796AC2
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796AC2#FFFFFF#000000##000000
##796AC21.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B78C5
Deuteranopia (green-blind)
#4B74C0
Tritanopia (blue-blind)
#667B8D
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #796ac2;
/* rgb */ color: rgb(121, 106, 194);
/* oklch */ color: oklch(57.8% 0.132 289.4);
Tailwind
colors: {
  custom: {
    50: '#a394d5',
    500: '#796ac2',
    950: '#000000',
  },
}
SCSS
$custom: #796ac2;
$custom-light: #a394d5;
$custom-dark: #000000;
JSON
{
  "hex": "#796ac2",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 194
  },
  "hsl": {
    "h": 250.227,
    "s": 41.905,
    "l": 58.824
  },
  "oklch": {
    "l": 0.57812,
    "c": 0.13219,
    "h": 289.4
  },
  "luminance": 0.18268
}

Semantic roles & 50–950 ramp

primary
#796AC2
secondary
#CFD5B3
accent
#D256BD
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #796AC2

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

Preview Lab → · Contrast checker → · Palette generator →

#796AC2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva