#796BAF#796BAF

#796BAF is a mid, moderate violet. Relative luminance 0.177; OKLCH L 56.9% C 0.104 H 292.2°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#796BAF
RGBrgb(121, 107, 175)
HSLhsl(252, 30%, 55%)
HSVhsv(252, 39%, 69%)
CMYKcmyk(30.9%, 38.9%, 0%, 31.4%)
CIE-LABlab(49.10, 21.09, -34.34)
CIE-LCHlch(49.10, 40.29, 301.56°)
OKLaboklab(56.95% 0.0392 -0.0959)
OKLCHoklch(56.95% 0.104 292.2)
XYZxyz(20.8788, 17.6751, 42.8607)
Luminance0.1767 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BAF #A1AF6B
analogous
#6B7FAF #796BAF #9B6BAF
triadic
#796BAF #AF796B #6BAF79
tetradic
#796BAF #AF6B7F #A1AF6B #6BAF9B
square
#796BAF #AF6B7F #A1AF6B #6BAF9B
split-complementary
#796BAF #AF9B6B #7FAF6B
monochromatic
#423868 #5B4D8F #796BAF #9D93C4 #C1BADA

Accessibility & contrast

On white

4.63
#796BAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#796BAF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #796BAF
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BAF#FFFFFF#000000##FFFFFF
##796BAF1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5776B2
Deuteranopia (green-blind)
#5973AD
Tritanopia (blue-blind)
#6D7785
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #796baf;
/* rgb */ color: rgb(121, 107, 175);
/* oklch */ color: oklch(56.9% 0.104 292.2);
Tailwind
colors: {
  custom: {
    50: '#a195c7',
    500: '#796baf',
    950: '#000000',
  },
}
SCSS
$custom: #796baf;
$custom-light: #a195c7;
$custom-dark: #000000;
JSON
{
  "hex": "#796baf",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 175
  },
  "hsl": {
    "h": 252.353,
    "s": 29.825,
    "l": 55.294
  },
  "oklch": {
    "l": 0.56949,
    "c": 0.10366,
    "h": 292.2
  },
  "luminance": 0.17675
}

Semantic roles & 50–950 ramp

primary
#796BAF
secondary
#C3C9AD
accent
#C662B1
background
#FAF9FC
surface
#F4F1F8
border
#CECBD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #796BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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