#796DB3#796DB3

#796DB3 is a mid, moderate violet. Relative luminance 0.183; OKLCH L 57.6% C 0.106 H 290.5°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#796DB3
RGBrgb(121, 109, 179)
HSLhsl(250, 32%, 56%)
HSVhsv(250, 39%, 70%)
CMYKcmyk(32.4%, 39.1%, 0%, 29.8%)
CIE-LABlab(49.81, 20.95, -35.55)
CIE-LCHlch(49.81, 41.27, 300.51°)
OKLaboklab(57.55% 0.0373 -0.0995)
OKLCHoklch(57.55% 0.106 290.5)
XYZxyz(21.4884, 18.2564, 45.0308)
Luminance0.1826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DB3 #A7B36D
analogous
#6D84B3 #796DB3 #9C6DB3
triadic
#796DB3 #B3796D #6DB379
tetradic
#796DB3 #B36D84 #A7B36D #6DB39C
square
#796DB3 #B36D84 #A7B36D #6DB39C
split-complementary
#796DB3 #B39C6D #84B36D
monochromatic
#42396D #5A4E95 #796DB3 #9E95C8 #C3BDDD

Accessibility & contrast

On white

4.51
#796DB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#796DB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796DB3
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DB3#FFFFFF#000000##000000
##796DB31.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5878B6
Deuteranopia (green-blind)
#5975B1
Tritanopia (blue-blind)
#6B7A87
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #796db3;
/* rgb */ color: rgb(121, 109, 179);
/* oklch */ color: oklch(57.6% 0.106 290.5);
Tailwind
colors: {
  custom: {
    50: '#a297ca',
    500: '#796db3',
    950: '#000000',
  },
}
SCSS
$custom: #796db3;
$custom-light: #a297ca;
$custom-dark: #000000;
JSON
{
  "hex": "#796db3",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 179
  },
  "hsl": {
    "h": 250.286,
    "s": 31.532,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57551,
    "c": 0.10623,
    "h": 290.5
  },
  "luminance": 0.18257
}

Semantic roles & 50–950 ramp

primary
#796DB3
secondary
#C7CCB0
accent
#C860B6
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #796DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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