#796DC1#796DC1

#796DC1 is a mid, vivid blue. Relative luminance 0.189; OKLCH L 58.3% C 0.126 H 288.4°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#796DC1
RGBrgb(121, 109, 193)
HSLhsl(249, 40%, 59%)
HSVhsv(249, 44%, 76%)
CMYKcmyk(37.3%, 43.5%, 0%, 24.3%)
CIE-LABlab(50.51, 24.78, -42.52)
CIE-LCHlch(50.51, 49.21, 300.23°)
OKLaboklab(58.32% 0.0398 -0.1198)
OKLCHoklch(58.32% 0.126 288.4)
XYZxyz(22.9768, 18.8518, 52.8699)
Luminance0.1885 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DC1 #B5C16D
analogous
#6D8BC1 #796DC1 #A36DC1
triadic
#796DC1 #C1796D #6DC179
tetradic
#796DC1 #C16D8B #B5C16D #6DC1A3
square
#796DC1 #C16D8B #B5C16D #6DC1A3
split-complementary
#796DC1 #C1A36D #8BC16D
monochromatic
#40367E #5648A9 #796DC1 #A098D3 #C8C3E5

Accessibility & contrast

On white

4.40
#796DC1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#796DC1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796DC1
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DC1#FFFFFF#000000##000000
##796DC11.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#507AC4
Deuteranopia (green-blind)
#5076BF
Tritanopia (blue-blind)
#667D8E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #796dc1;
/* rgb */ color: rgb(121, 109, 193);
/* oklch */ color: oklch(58.3% 0.126 288.4);
Tailwind
colors: {
  custom: {
    50: '#a397d4',
    500: '#796dc1',
    950: '#000000',
  },
}
SCSS
$custom: #796dc1;
$custom-light: #a397d4;
$custom-dark: #000000;
JSON
{
  "hex": "#796dc1",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 193
  },
  "hsl": {
    "h": 248.571,
    "s": 40.385,
    "l": 59.216
  },
  "oklch": {
    "l": 0.58319,
    "c": 0.12621,
    "h": 288.4
  },
  "luminance": 0.18852
}

Semantic roles & 50–950 ramp

primary
#796DC1
secondary
#D1D5B4
accent
#D058BF
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #796DC1

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

Preview Lab → · Contrast checker → · Palette generator →

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