#796CB7#796CB7

#796CB7 is a mid, moderate violet. Relative luminance 0.182; OKLCH L 57.6% C 0.114 H 290.3°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#796CB7
RGBrgb(121, 108, 183)
HSLhsl(250, 34%, 57%)
HSVhsv(250, 41%, 72%)
CMYKcmyk(33.9%, 41%, 0%, 28.2%)
CIE-LABlab(49.75, 22.63, -37.96)
CIE-LCHlch(49.75, 44.19, 300.80°)
OKLaboklab(57.57% 0.0394 -0.1065)
OKLCHoklch(57.57% 0.114 290.3)
XYZxyz(21.7927, 18.2085, 47.1570)
Luminance0.1821 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CB7 #AAB76C
analogous
#6C85B7 #796CB7 #9F6CB7
triadic
#796CB7 #B7796C #6CB779
tetradic
#796CB7 #B76C85 #AAB76C #6CB79F
square
#796CB7 #B76C85 #AAB76C #6CB79F
split-complementary
#796CB7 #B79F6C #85B76C
monochromatic
#413771 #594C9A #796CB7 #9E95CB #C4BEDF

Accessibility & contrast

On white

4.52
#796CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#796CB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CB7
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CB7#FFFFFF#000000##000000
##796CB71.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5578BA
Deuteranopia (green-blind)
#5575B5
Tritanopia (blue-blind)
#6A7A89
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #796cb7;
/* rgb */ color: rgb(121, 108, 183);
/* oklch */ color: oklch(57.6% 0.114 290.3);
Tailwind
colors: {
  custom: {
    50: '#a296cd',
    500: '#796cb7',
    950: '#000000',
  },
}
SCSS
$custom: #796cb7;
$custom-light: #a296cd;
$custom-dark: #000000;
JSON
{
  "hex": "#796cb7",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 183
  },
  "hsl": {
    "h": 250.4,
    "s": 34.247,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57571,
    "c": 0.11354,
    "h": 290.3
  },
  "luminance": 0.18209
}

Semantic roles & 50–950 ramp

primary
#796CB7
secondary
#C9CFB0
accent
#CA5DB7
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #796CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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