#796791#796791

#796791 is a mid, moderate violet. Relative luminance 0.158; OKLCH L 54.7% C 0.067 H 303.9°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#796791
RGBrgb(121, 103, 145)
HSLhsl(266, 17%, 49%)
HSVhsv(266, 29%, 57%)
CMYKcmyk(16.6%, 29%, 0%, 43.1%)
CIE-LABlab(46.72, 15.94, -20.38)
CIE-LCHlch(46.72, 25.87, 308.04°)
OKLaboklab(54.69% 0.0375 -0.0559)
OKLCHoklch(54.69% 0.067 303.9)
XYZxyz(17.8452, 15.8098, 28.8940)
Luminance0.1581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796791 #7F9167
analogous
#676A91 #796791 #8E6791
triadic
#796791 #917967 #679179
tetradic
#796791 #91676A #7F9167 #67918E
square
#796791 #91676A #7F9167 #67918E
split-complementary
#796791 #918E67 #6A9167
monochromatic
#3D3449 #5B4E6D #796791 #988AAC #B8ADC5

Accessibility & contrast

On white

5.05
#796791 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#796791 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796791
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796791#FFFFFF#000000##FFFFFF
##7967911.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F6E93
Deuteranopia (green-blind)
#626F90
Tritanopia (blue-blind)
#756D76
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #796791;
/* rgb */ color: rgb(121, 103, 145);
/* oklch */ color: oklch(54.7% 0.067 303.9);
Tailwind
colors: {
  custom: {
    50: '#a092b1',
    500: '#796791',
    950: '#000000',
  },
}
SCSS
$custom: #796791;
$custom-light: #a092b1;
$custom-dark: #000000;
JSON
{
  "hex": "#796791",
  "rgb": {
    "r": 121,
    "g": 103,
    "b": 145
  },
  "hsl": {
    "h": 265.714,
    "s": 16.935,
    "l": 48.627
  },
  "oklch": {
    "l": 0.54693,
    "c": 0.06732,
    "h": 303.9
  },
  "luminance": 0.1581
}

Semantic roles & 50–950 ramp

primary
#796791
secondary
#ABB4A0
accent
#BA6E99
background
#F9F9FA
surface
#F2F1F5
border
#CCCBCF
text
#0E0D10
muted
#7E7E7F

Preview Lab

Preview with #796791

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

Preview Lab → · Contrast checker → · Palette generator →

#796791 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva