#796CA0#796CA0

#796CA0 is a mid, moderate violet. Relative luminance 0.173; OKLCH L 56.4% C 0.080 H 295.2°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#796CA0
RGBrgb(121, 108, 160)
HSLhsl(255, 21%, 53%)
HSVhsv(255, 33%, 63%)
CMYKcmyk(24.4%, 32.5%, 0%, 37.3%)
CIE-LABlab(48.67, 16.60, -26.23)
CIE-LCHlch(48.67, 31.05, 302.33°)
OKLaboklab(56.4% 0.0342 -0.0726)
OKLCHoklch(56.4% 0.08 295.2)
XYZxyz(19.5914, 17.3279, 35.5634)
Luminance0.1733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CA0 #93A06C
analogous
#6C79A0 #796CA0 #936CA0
triadic
#796CA0 #A0796C #6CA079
tetradic
#796CA0 #A06C79 #93A06C #6CA093
square
#796CA0 #A06C79 #93A06C #6CA093
split-complementary
#796CA0 #A0936C #79A06C
monochromatic
#413958 #5C517E #796CA0 #9B91B8 #BDB6D0

Accessibility & contrast

On white

4.70
#796CA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#796CA0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796CA0
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CA0#FFFFFF#000000##FFFFFF
##796CA01.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F74A2
Deuteranopia (green-blind)
#61739F
Tritanopia (blue-blind)
#71757F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #796ca0;
/* rgb */ color: rgb(121, 108, 160);
/* oklch */ color: oklch(56.4% 0.080 295.2);
Tailwind
colors: {
  custom: {
    50: '#a096bc',
    500: '#796ca0',
    950: '#000000',
  },
}
SCSS
$custom: #796ca0;
$custom-light: #a096bc;
$custom-dark: #000000;
JSON
{
  "hex": "#796ca0",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 160
  },
  "hsl": {
    "h": 255,
    "s": 21.488,
    "l": 52.549
  },
  "oklch": {
    "l": 0.56395,
    "c": 0.08024,
    "h": 295.2
  },
  "luminance": 0.17328
}

Semantic roles & 50–950 ramp

primary
#796CA0
secondary
#BABFA9
accent
#BE6AA9
background
#F9F9FB
surface
#F2F2F6
border
#CCCCD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #796CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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