#796BB4#796BB4

#796BB4 is a mid, moderate violet. Relative luminance 0.179; OKLCH L 57.2% C 0.111 H 291.3°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#796BB4
RGBrgb(121, 107, 180)
HSLhsl(252, 33%, 56%)
HSVhsv(252, 41%, 71%)
CMYKcmyk(32.8%, 40.6%, 0%, 29.4%)
CIE-LABlab(49.34, 22.42, -36.86)
CIE-LCHlch(49.34, 43.14, 301.31°)
OKLaboklab(57.22% 0.0403 -0.1033)
OKLCHoklch(57.22% 0.111 291.3)
XYZxyz(21.3789, 17.8752, 45.4950)
Luminance0.1788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BB4 #A6B46B
analogous
#6B82B4 #796BB4 #9E6BB4
triadic
#796BB4 #B4796B #6BB479
tetradic
#796BB4 #B46B82 #A6B46B #6BB49E
square
#796BB4 #B46B82 #A6B46B #6BB49E
split-complementary
#796BB4 #B49E6B #82B46B
monochromatic
#42376D #5A4C96 #796BB4 #9E94C9 #C3BCDD

Accessibility & contrast

On white

4.59
#796BB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#796BB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #796BB4
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BB4#FFFFFF#000000##FFFFFF
##796BB41.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5576B7
Deuteranopia (green-blind)
#5674B2
Tritanopia (blue-blind)
#6B7887
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #796bb4;
/* rgb */ color: rgb(121, 107, 180);
/* oklch */ color: oklch(57.2% 0.111 291.3);
Tailwind
colors: {
  custom: {
    50: '#a295cb',
    500: '#796bb4',
    950: '#000000',
  },
}
SCSS
$custom: #796bb4;
$custom-light: #a295cb;
$custom-dark: #000000;
JSON
{
  "hex": "#796bb4",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 180
  },
  "hsl": {
    "h": 251.507,
    "s": 32.735,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57216,
    "c": 0.11084,
    "h": 291.3
  },
  "luminance": 0.17876
}

Semantic roles & 50–950 ramp

primary
#796BB4
secondary
#C7CCAE
accent
#C95FB5
background
#FAF9FC
surface
#F4F1F8
border
#CECBD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #796BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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