#796FC2#796FC2

#796FC2 is a mid, vivid blue. Relative luminance 0.193; OKLCH L 58.8% C 0.125 H 287.4°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#796FC2
RGBrgb(121, 111, 194)
HSLhsl(247, 40%, 60%)
HSVhsv(247, 43%, 76%)
CMYKcmyk(37.6%, 42.8%, 0%, 23.9%)
CIE-LABlab(51.07, 23.86, -42.21)
CIE-LCHlch(51.07, 48.49, 299.47°)
OKLaboklab(58.76% 0.0374 -0.1189)
OKLCHoklch(58.76% 0.125 287.4)
XYZxyz(23.3045, 19.3282, 53.5313)
Luminance0.1933 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FC2 #B8C26F
analogous
#6F8FC2 #796FC2 #A36FC2
triadic
#796FC2 #C2796F #6FC279
tetradic
#796FC2 #C26F8F #B8C26F #6FC2A3
square
#796FC2 #C26F8F #B8C26F #6FC2A3
split-complementary
#796FC2 #C2A36F #8FC26F
monochromatic
#3F3680 #5449AB #796FC2 #A19AD4 #C9C5E6

Accessibility & contrast

On white

4.32
#796FC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#796FC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FC2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FC2#FFFFFF#000000##000000
##796FC21.004.324.874.87
#FFFFFF4.321.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#537CC5
Deuteranopia (green-blind)
#5277C0
Tritanopia (blue-blind)
#657F8F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #796fc2;
/* rgb */ color: rgb(121, 111, 194);
/* oklch */ color: oklch(58.8% 0.125 287.4);
Tailwind
colors: {
  custom: {
    50: '#a398d5',
    500: '#796fc2',
    950: '#000000',
  },
}
SCSS
$custom: #796fc2;
$custom-light: #a398d5;
$custom-dark: #000000;
JSON
{
  "hex": "#796fc2",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 194
  },
  "hsl": {
    "h": 247.229,
    "s": 40.488,
    "l": 59.804
  },
  "oklch": {
    "l": 0.58758,
    "c": 0.12459,
    "h": 287.4
  },
  "luminance": 0.19329
}

Semantic roles & 50–950 ramp

primary
#796FC2
secondary
#D3D6B6
accent
#D057C2
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #796FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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