#796BBB#796BBB

#796BBB is a mid, vivid violet. Relative luminance 0.182; OKLCH L 57.6% C 0.121 H 290.1°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#796BBB
RGBrgb(121, 107, 187)
HSLhsl(251, 37%, 58%)
HSVhsv(251, 43%, 73%)
CMYKcmyk(35.3%, 42.8%, 0%, 26.7%)
CIE-LABlab(49.70, 24.32, -40.35)
CIE-LCHlch(49.70, 47.11, 301.08°)
OKLaboklab(57.6% 0.0415 -0.1134)
OKLCHoklch(57.6% 0.121 290.1)
XYZxyz(22.1101, 18.1676, 49.3459)
Luminance0.1817 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BBB #ADBB6B
analogous
#6B85BB #796BBB #A16BBB
triadic
#796BBB #BB796B #6BBB79
tetradic
#796BBB #BB6B85 #ADBB6B #6BBBA1
square
#796BBB #BB6B85 #ADBB6B #6BBBA1
split-complementary
#796BBB #BBA16B #85BB6B
monochromatic
#413676 #5849A0 #796BBB #9F95CE #C5BFE2

Accessibility & contrast

On white

4.53
#796BBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#796BBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BBB
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BBB#FFFFFF#000000##000000
##796BBB1.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5178BE
Deuteranopia (green-blind)
#5274B9
Tritanopia (blue-blind)
#697A8A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #796bbb;
/* rgb */ color: rgb(121, 107, 187);
/* oklch */ color: oklch(57.6% 0.121 290.1);
Tailwind
colors: {
  custom: {
    50: '#a295d0',
    500: '#796bbb',
    950: '#000000',
  },
}
SCSS
$custom: #796bbb;
$custom-light: #a295d0;
$custom-dark: #000000;
JSON
{
  "hex": "#796bbb",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 187
  },
  "hsl": {
    "h": 250.5,
    "s": 37.037,
    "l": 57.647
  },
  "oklch": {
    "l": 0.576,
    "c": 0.1208,
    "h": 290.1
  },
  "luminance": 0.18168
}

Semantic roles & 50–950 ramp

primary
#796BBB
secondary
#CBD1B1
accent
#CD5BB9
background
#FAF9FC
surface
#F4F1F9
border
#CECBD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #796BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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