#796BB2#796BB2

#796BB2 is a mid, moderate violet. Relative luminance 0.178; OKLCH L 57.1% C 0.108 H 291.7°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#796BB2
RGBrgb(121, 107, 178)
HSLhsl(252, 32%, 56%)
HSVhsv(252, 40%, 70%)
CMYKcmyk(32%, 39.9%, 0%, 30.2%)
CIE-LABlab(49.25, 21.89, -35.85)
CIE-LCHlch(49.25, 42.00, 301.40°)
OKLaboklab(57.11% 0.0399 -0.1003)
OKLCHoklch(57.11% 0.108 291.7)
XYZxyz(21.1767, 17.7943, 44.4298)
Luminance0.1779 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BB2 #A4B26B
analogous
#6B80B2 #796BB2 #9C6BB2
triadic
#796BB2 #B2796B #6BB279
tetradic
#796BB2 #B26B80 #A4B26B #6BB29C
square
#796BB2 #B26B80 #A4B26B #6BB29C
split-complementary
#796BB2 #B29C6B #80B26B
monochromatic
#42386B #5B4D93 #796BB2 #9D93C7 #C2BCDC

Accessibility & contrast

On white

4.61
#796BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#796BB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #796BB2
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BB2#FFFFFF#000000##FFFFFF
##796BB21.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5676B5
Deuteranopia (green-blind)
#5774B0
Tritanopia (blue-blind)
#6C7886
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #796bb2;
/* rgb */ color: rgb(121, 107, 178);
/* oklch */ color: oklch(57.1% 0.108 291.7);
Tailwind
colors: {
  custom: {
    50: '#a295c9',
    500: '#796bb2',
    950: '#000000',
  },
}
SCSS
$custom: #796bb2;
$custom-light: #a295c9;
$custom-dark: #000000;
JSON
{
  "hex": "#796bb2",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 178
  },
  "hsl": {
    "h": 251.831,
    "s": 31.556,
    "l": 55.882
  },
  "oklch": {
    "l": 0.57108,
    "c": 0.10798,
    "h": 291.7
  },
  "luminance": 0.17795
}

Semantic roles & 50–950 ramp

primary
#796BB2
secondary
#C5CBAE
accent
#C860B3
background
#FAF9FC
surface
#F4F1F8
border
#CECBD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #796BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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