#796DB2#796DB2

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

Color values

HEX#796DB2
RGBrgb(121, 109, 178)
HSLhsl(250, 31%, 56%)
HSVhsv(250, 39%, 70%)
CMYKcmyk(32%, 38.8%, 0%, 30.2%)
CIE-LABlab(49.76, 20.68, -35.05)
CIE-LCHlch(49.76, 40.70, 300.55°)
OKLaboklab(57.5% 0.037 -0.098)
OKLCHoklch(57.5% 0.105 290.7)
XYZxyz(21.3876, 18.2161, 44.5001)
Luminance0.1822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DB2 #A6B26D
analogous
#6D84B2 #796DB2 #9C6DB2
triadic
#796DB2 #B2796D #6DB279
tetradic
#796DB2 #B26D84 #A6B26D #6DB29C
square
#796DB2 #B26D84 #A6B26D #6DB29C
split-complementary
#796DB2 #B29C6D #84B26D
monochromatic
#42396C #5A4E94 #796DB2 #9E95C7 #C3BDDC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796DB2#FFFFFF#000000##000000
##796DB21.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)
#5978B5
Deuteranopia (green-blind)
#5975B0
Tritanopia (blue-blind)
#6C7A87
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #796db2;
/* rgb */ color: rgb(121, 109, 178);
/* oklch */ color: oklch(57.5% 0.105 290.7);
Tailwind
colors: {
  custom: {
    50: '#a197c9',
    500: '#796db2',
    950: '#000000',
  },
}
SCSS
$custom: #796db2;
$custom-light: #a197c9;
$custom-dark: #000000;
JSON
{
  "hex": "#796db2",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 178
  },
  "hsl": {
    "h": 250.435,
    "s": 30.942,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57498,
    "c": 0.10478,
    "h": 290.7
  },
  "luminance": 0.18217
}

Semantic roles & 50–950 ramp

primary
#796DB2
secondary
#C7CCAF
accent
#C761B5
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #796DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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