#796DC2#796DC2

#796DC2 is a mid, vivid blue. Relative luminance 0.189; OKLCH L 58.4% C 0.128 H 288.3°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#796DC2
RGBrgb(121, 109, 194)
HSLhsl(248, 41%, 59%)
HSVhsv(248, 44%, 76%)
CMYKcmyk(37.6%, 43.8%, 0%, 23.9%)
CIE-LABlab(50.57, 25.06, -43.01)
CIE-LCHlch(50.57, 49.78, 300.22°)
OKLaboklab(58.38% 0.04 -0.1212)
OKLCHoklch(58.38% 0.128 288.3)
XYZxyz(23.0887, 18.8966, 53.4594)
Luminance0.1890 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DC2 #B6C26D
analogous
#6D8CC2 #796DC2 #A46DC2
triadic
#796DC2 #C2796D #6DC279
tetradic
#796DC2 #C26D8C #B6C26D #6DC2A4
square
#796DC2 #C26D8C #B6C26D #6DC2A4
split-complementary
#796DC2 #C2A46D #8CC26D
monochromatic
#40357F #5547AB #796DC2 #A198D4 #C8C3E6

Accessibility & contrast

On white

4.39
#796DC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#796DC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796DC2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DC2#FFFFFF#000000##000000
##796DC21.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#507AC5
Deuteranopia (green-blind)
#4F76C0
Tritanopia (blue-blind)
#667E8E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #796dc2;
/* rgb */ color: rgb(121, 109, 194);
/* oklch */ color: oklch(58.4% 0.128 288.3);
Tailwind
colors: {
  custom: {
    50: '#a397d5',
    500: '#796dc2',
    950: '#000000',
  },
}
SCSS
$custom: #796dc2;
$custom-light: #a397d5;
$custom-dark: #000000;
JSON
{
  "hex": "#796dc2",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 194
  },
  "hsl": {
    "h": 248.471,
    "s": 41.063,
    "l": 59.412
  },
  "oklch": {
    "l": 0.58376,
    "c": 0.12762,
    "h": 288.3
  },
  "luminance": 0.18897
}

Semantic roles & 50–950 ramp

primary
#796DC2
secondary
#D1D6B5
accent
#D157C0
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #796DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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