#796BB9#796BB9

#796BB9 is a mid, moderate violet. Relative luminance 0.181; OKLCH L 57.5% C 0.118 H 290.4°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#796BB9
RGBrgb(121, 107, 185)
HSLhsl(251, 36%, 57%)
HSVhsv(251, 42%, 73%)
CMYKcmyk(34.6%, 42.2%, 0%, 27.5%)
CIE-LABlab(49.60, 23.78, -39.36)
CIE-LCHlch(49.60, 45.98, 301.14°)
OKLaboklab(57.49% 0.0412 -0.1105)
OKLCHoklch(57.49% 0.118 290.4)
XYZxyz(21.8975, 18.0826, 48.2261)
Luminance0.1808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BB9 #ABB96B
analogous
#6B84B9 #796BB9 #A06BB9
triadic
#796BB9 #B9796B #6BB979
tetradic
#796BB9 #B96B84 #ABB96B #6BB9A0
square
#796BB9 #B96B84 #ABB96B #6BB9A0
split-complementary
#796BB9 #B9A06B #84B96B
monochromatic
#413673 #594A9D #796BB9 #9F95CD #C4BEE0

Accessibility & contrast

On white

4.55
#796BB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#796BB9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BB9
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BB9#FFFFFF#000000##000000
##796BB91.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5277BC
Deuteranopia (green-blind)
#5374B7
Tritanopia (blue-blind)
#697A89
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #796bb9;
/* rgb */ color: rgb(121, 107, 185);
/* oklch */ color: oklch(57.5% 0.118 290.4);
Tailwind
colors: {
  custom: {
    50: '#a295ce',
    500: '#796bb9',
    950: '#000000',
  },
}
SCSS
$custom: #796bb9;
$custom-light: #a295ce;
$custom-dark: #000000;
JSON
{
  "hex": "#796bb9",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 185
  },
  "hsl": {
    "h": 250.769,
    "s": 35.78,
    "l": 57.255
  },
  "oklch": {
    "l": 0.57489,
    "c": 0.11796,
    "h": 290.4
  },
  "luminance": 0.18083
}

Semantic roles & 50–950 ramp

primary
#796BB9
secondary
#CAD0B0
accent
#CC5CB8
background
#FAF9FC
surface
#F4F1F9
border
#CECBD2
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #796BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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