#796BB6#796BB6

#796BB6 is a mid, moderate violet. Relative luminance 0.180; OKLCH L 57.3% C 0.114 H 290.9°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#796BB6
RGBrgb(121, 107, 182)
HSLhsl(251, 34%, 57%)
HSVhsv(251, 41%, 71%)
CMYKcmyk(33.5%, 41.2%, 0%, 28.6%)
CIE-LABlab(49.44, 22.96, -37.86)
CIE-LCHlch(49.44, 44.28, 301.24°)
OKLaboklab(57.32% 0.0406 -0.1062)
OKLCHoklch(57.32% 0.114 290.9)
XYZxyz(21.5842, 17.9573, 46.5758)
Luminance0.1796 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BB6 #A8B66B
analogous
#6B83B6 #796BB6 #9F6BB6
triadic
#796BB6 #B6796B #6BB679
tetradic
#796BB6 #B66B83 #A8B66B #6BB69F
square
#796BB6 #B66B83 #A8B66B #6BB69F
split-complementary
#796BB6 #B69F6B #83B66B
monochromatic
#423770 #5A4B99 #796BB6 #9E94CA #C3BDDE

Accessibility & contrast

On white

4.57
#796BB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#796BB6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BB6
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BB6#FFFFFF#000000##000000
##796BB61.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5477B9
Deuteranopia (green-blind)
#5574B4
Tritanopia (blue-blind)
#6A7988
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #796bb6;
/* rgb */ color: rgb(121, 107, 182);
/* oklch */ color: oklch(57.3% 0.114 290.9);
Tailwind
colors: {
  custom: {
    50: '#a295cc',
    500: '#796bb6',
    950: '#000000',
  },
}
SCSS
$custom: #796bb6;
$custom-light: #a295cc;
$custom-dark: #000000;
JSON
{
  "hex": "#796bb6",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 182
  },
  "hsl": {
    "h": 251.2,
    "s": 33.937,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57324,
    "c": 0.11369,
    "h": 290.9
  },
  "luminance": 0.17958
}

Semantic roles & 50–950 ramp

primary
#796BB6
secondary
#C8CEAF
accent
#CA5EB6
background
#FAF9FC
surface
#F4F1F9
border
#CECBD2
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #796BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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