#796BB1#796BB1

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

Color values

HEX#796BB1
RGBrgb(121, 107, 177)
HSLhsl(252, 31%, 56%)
HSVhsv(252, 40%, 69%)
CMYKcmyk(31.6%, 39.5%, 0%, 30.6%)
CIE-LABlab(49.20, 21.62, -35.35)
CIE-LCHlch(49.20, 41.43, 301.45°)
OKLaboklab(57.06% 0.0397 -0.0989)
OKLCHoklch(57.06% 0.107 291.9)
XYZxyz(21.0766, 17.7543, 43.9029)
Luminance0.1776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BB1 #A3B16B
analogous
#6B80B1 #796BB1 #9C6BB1
triadic
#796BB1 #B1796B #6BB179
tetradic
#796BB1 #B16B80 #A3B16B #6BB19C
square
#796BB1 #B16B80 #A3B16B #6BB19C
split-complementary
#796BB1 #B19C6B #80B16B
monochromatic
#42386A #5B4D92 #796BB1 #9D93C6 #C2BBDB

Accessibility & contrast

On white

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

On black

4.55
#796BB1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##796BB1#FFFFFF#000000##FFFFFF
##796BB11.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5676B4
Deuteranopia (green-blind)
#5874AF
Tritanopia (blue-blind)
#6C7885
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #796bb1;
/* rgb */ color: rgb(121, 107, 177);
/* oklch */ color: oklch(57.1% 0.107 291.9);
Tailwind
colors: {
  custom: {
    50: '#a195c8',
    500: '#796bb1',
    950: '#000000',
  },
}
SCSS
$custom: #796bb1;
$custom-light: #a195c8;
$custom-dark: #000000;
JSON
{
  "hex": "#796bb1",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 177
  },
  "hsl": {
    "h": 252,
    "s": 30.973,
    "l": 55.686
  },
  "oklch": {
    "l": 0.57055,
    "c": 0.10653,
    "h": 291.9
  },
  "luminance": 0.17755
}

Semantic roles & 50–950 ramp

primary
#796BB1
secondary
#C5CAAD
accent
#C761B3
background
#FAF9FC
surface
#F4F1F8
border
#CECBD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #796BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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