#796CA3#796CA3

#796CA3 is a mid, moderate violet. Relative luminance 0.174; OKLCH L 56.5% C 0.085 H 294.4°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#796CA3
RGBrgb(121, 108, 163)
HSLhsl(254, 23%, 53%)
HSVhsv(254, 34%, 64%)
CMYKcmyk(25.8%, 33.7%, 0%, 36.1%)
CIE-LABlab(48.80, 17.36, -27.79)
CIE-LCHlch(48.80, 32.77, 302.00°)
OKLaboklab(56.54% 0.0349 -0.0771)
OKLCHoklch(56.54% 0.085 294.4)
XYZxyz(19.8570, 17.4342, 36.9622)
Luminance0.1743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CA3 #96A36C
analogous
#6C7AA3 #796CA3 #946CA3
triadic
#796CA3 #A3796C #6CA379
tetradic
#796CA3 #A36C7A #96A36C #6CA394
square
#796CA3 #A36C7A #96A36C #6CA394
split-complementary
#796CA3 #A3946C #7AA36C
monochromatic
#41395B #5C5181 #796CA3 #9B92BB #BEB7D2

Accessibility & contrast

On white

4.68
#796CA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #796CA3
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CA3#FFFFFF#000000##FFFFFF
##796CA31.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E74A5
Deuteranopia (green-blind)
#6073A2
Tritanopia (blue-blind)
#707580
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #796ca3;
/* rgb */ color: rgb(121, 108, 163);
/* oklch */ color: oklch(56.5% 0.085 294.4);
Tailwind
colors: {
  custom: {
    50: '#a196be',
    500: '#796ca3',
    950: '#000000',
  },
}
SCSS
$custom: #796ca3;
$custom-light: #a196be;
$custom-dark: #000000;
JSON
{
  "hex": "#796ca3",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 163
  },
  "hsl": {
    "h": 254.182,
    "s": 23.013,
    "l": 53.137
  },
  "oklch": {
    "l": 0.5654,
    "c": 0.08462,
    "h": 294.4
  },
  "luminance": 0.17434
}

Semantic roles & 50–950 ramp

primary
#796CA3
secondary
#BCC1AA
accent
#C068AB
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #796CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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