#796CC5#796CC5

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

Color values

HEX#796CC5
RGBrgb(121, 108, 197)
HSLhsl(249, 43%, 60%)
HSVhsv(249, 45%, 77%)
CMYKcmyk(38.6%, 45.2%, 0%, 22.7%)
CIE-LABlab(50.48, 26.49, -44.87)
CIE-LCHlch(50.48, 52.11, 300.56°)
OKLaboklab(58.36% 0.0418 -0.1266)
OKLCHoklch(58.36% 0.133 288.3)
XYZxyz(23.3230, 18.8206, 55.2164)
Luminance0.1882 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CC5 #B8C56C
analogous
#6C8CC5 #796CC5 #A66CC5
triadic
#796CC5 #C5796C #6CC579
tetradic
#796CC5 #C56C8C #B8C56C #6CC5A6
square
#796CC5 #C56C8C #B8C56C #6CC5A6
split-complementary
#796CC5 #C5A66C #8CC56C
monochromatic
#3F3483 #5445AF #796CC5 #A198D6 #C9C4E8

Accessibility & contrast

On white

4.41
#796CC5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#796CC5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CC5
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CC5#FFFFFF#000000##000000
##796CC51.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C7AC8
Deuteranopia (green-blind)
#4C76C3
Tritanopia (blue-blind)
#647E8F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #796cc5;
/* rgb */ color: rgb(121, 108, 197);
/* oklch */ color: oklch(58.4% 0.133 288.3);
Tailwind
colors: {
  custom: {
    50: '#a396d7',
    500: '#796cc5',
    950: '#000000',
  },
}
SCSS
$custom: #796cc5;
$custom-light: #a396d7;
$custom-dark: #000000;
JSON
{
  "hex": "#796cc5",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 197
  },
  "hsl": {
    "h": 248.764,
    "s": 43.415,
    "l": 59.804
  },
  "oklch": {
    "l": 0.58361,
    "c": 0.13335,
    "h": 288.3
  },
  "luminance": 0.18821
}

Semantic roles & 50–950 ramp

primary
#796CC5
secondary
#D3D8B5
accent
#D355C1
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #796CC5

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

Preview Lab → · Contrast checker → · Palette generator →

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