#796BB0#796BB0

#796BB0 is a mid, moderate violet. Relative luminance 0.177; OKLCH L 57.0% C 0.105 H 292.0°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#796BB0
RGBrgb(121, 107, 176)
HSLhsl(252, 30%, 55%)
HSVhsv(252, 39%, 69%)
CMYKcmyk(31.3%, 39.2%, 0%, 31%)
CIE-LABlab(49.15, 21.35, -34.84)
CIE-LCHlch(49.15, 40.86, 301.50°)
OKLaboklab(57% 0.0395 -0.0974)
OKLCHoklch(57% 0.105 292)
XYZxyz(20.9773, 17.7145, 43.3799)
Luminance0.1772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BB0 #A2B06B
analogous
#6B7FB0 #796BB0 #9B6BB0
triadic
#796BB0 #B0796B #6BB079
tetradic
#796BB0 #B06B7F #A2B06B #6BB09B
square
#796BB0 #B06B7F #A2B06B #6BB09B
split-complementary
#796BB0 #B09B6B #7FB06B
monochromatic
#423869 #5B4D91 #796BB0 #9D93C5 #C1BBDB

Accessibility & contrast

On white

4.62
#796BB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#796BB0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #796BB0
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BB0#FFFFFF#000000##FFFFFF
##796BB01.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5776B3
Deuteranopia (green-blind)
#5873AE
Tritanopia (blue-blind)
#6C7785
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #796bb0;
/* rgb */ color: rgb(121, 107, 176);
/* oklch */ color: oklch(57.0% 0.105 292.0);
Tailwind
colors: {
  custom: {
    50: '#a195c8',
    500: '#796bb0',
    950: '#000000',
  },
}
SCSS
$custom: #796bb0;
$custom-light: #a195c8;
$custom-dark: #000000;
JSON
{
  "hex": "#796bb0",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 176
  },
  "hsl": {
    "h": 252.174,
    "s": 30.396,
    "l": 55.49
  },
  "oklch": {
    "l": 0.57002,
    "c": 0.1051,
    "h": 292
  },
  "luminance": 0.17715
}

Semantic roles & 50–950 ramp

primary
#796BB0
secondary
#C4CAAD
accent
#C761B2
background
#FAF9FC
surface
#F4F1F8
border
#CECBD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #796BB0

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

Preview Lab → · Contrast checker → · Palette generator →

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