#796BB3#796BB3

#796BB3 is a mid, moderate violet. Relative luminance 0.178; OKLCH L 57.2% C 0.109 H 291.5°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#796BB3
RGBrgb(121, 107, 179)
HSLhsl(252, 32%, 56%)
HSVhsv(252, 40%, 70%)
CMYKcmyk(32.4%, 40.2%, 0%, 29.8%)
CIE-LABlab(49.29, 22.15, -36.35)
CIE-LCHlch(49.29, 42.57, 301.36°)
OKLaboklab(57.16% 0.0401 -0.1018)
OKLCHoklch(57.16% 0.109 291.5)
XYZxyz(21.2774, 17.8346, 44.9605)
Luminance0.1784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BB3 #A5B36B
analogous
#6B81B3 #796BB3 #9D6BB3
triadic
#796BB3 #B3796B #6BB379
tetradic
#796BB3 #B36B81 #A5B36B #6BB39D
square
#796BB3 #B36B81 #A5B36B #6BB39D
split-complementary
#796BB3 #B39D6B #81B36B
monochromatic
#42386C #5A4C95 #796BB3 #9E93C8 #C2BCDD

Accessibility & contrast

On white

4.60
#796BB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#796BB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #796BB3
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BB3#FFFFFF#000000##FFFFFF
##796BB31.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5576B6
Deuteranopia (green-blind)
#5674B1
Tritanopia (blue-blind)
#6B7886
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #796bb3;
/* rgb */ color: rgb(121, 107, 179);
/* oklch */ color: oklch(57.2% 0.109 291.5);
Tailwind
colors: {
  custom: {
    50: '#a295ca',
    500: '#796bb3',
    950: '#000000',
  },
}
SCSS
$custom: #796bb3;
$custom-light: #a295ca;
$custom-dark: #000000;
JSON
{
  "hex": "#796bb3",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 179
  },
  "hsl": {
    "h": 251.667,
    "s": 32.143,
    "l": 56.078
  },
  "oklch": {
    "l": 0.57162,
    "c": 0.10941,
    "h": 291.5
  },
  "luminance": 0.17835
}

Semantic roles & 50–950 ramp

primary
#796BB3
secondary
#C6CCAE
accent
#C85FB4
background
#FAF9FC
surface
#F4F1F8
border
#CECBD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #796BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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