#796CA4#796CA4

#796CA4 is a mid, moderate violet. Relative luminance 0.175; OKLCH L 56.6% C 0.086 H 294.1°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#796CA4
RGBrgb(121, 108, 164)
HSLhsl(254, 24%, 53%)
HSVhsv(254, 34%, 64%)
CMYKcmyk(26.2%, 34.1%, 0%, 35.7%)
CIE-LABlab(48.85, 17.62, -28.31)
CIE-LCHlch(48.85, 33.34, 301.90°)
OKLaboklab(56.59% 0.0352 -0.0785)
OKLCHoklch(56.59% 0.086 294.1)
XYZxyz(19.9470, 17.4702, 37.4359)
Luminance0.1747 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CA4 #97A46C
analogous
#6C7BA4 #796CA4 #956CA4
triadic
#796CA4 #A4796C #6CA479
tetradic
#796CA4 #A46C7B #97A46C #6CA495
square
#796CA4 #A46C7B #97A46C #6CA495
split-complementary
#796CA4 #A4956C #7BA46C
monochromatic
#41395C #5C5182 #796CA4 #9B92BB #BEB8D3

Accessibility & contrast

On white

4.67
#796CA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#796CA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796CA4
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CA4#FFFFFF#000000##FFFFFF
##796CA41.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E75A6
Deuteranopia (green-blind)
#5F73A3
Tritanopia (blue-blind)
#707580
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #796ca4;
/* rgb */ color: rgb(121, 108, 164);
/* oklch */ color: oklch(56.6% 0.086 294.1);
Tailwind
colors: {
  custom: {
    50: '#a196bf',
    500: '#796ca4',
    950: '#000000',
  },
}
SCSS
$custom: #796ca4;
$custom-light: #a196bf;
$custom-dark: #000000;
JSON
{
  "hex": "#796ca4",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 164
  },
  "hsl": {
    "h": 253.929,
    "s": 23.529,
    "l": 53.333
  },
  "oklch": {
    "l": 0.56589,
    "c": 0.08608,
    "h": 294.1
  },
  "luminance": 0.1747
}

Semantic roles & 50–950 ramp

primary
#796CA4
secondary
#BCC2AA
accent
#C068AC
background
#FAF9FB
surface
#F3F2F7
border
#CDCCD0
text
#0F0D12
muted
#7F7E81

Preview Lab

Preview with #796CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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