#796CE2#796CE2

#796CE2 is a mid, vivid blue. Relative luminance 0.203; OKLCH L 60.2% C 0.173 H 284.9°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#796CE2
RGBrgb(121, 108, 226)
HSLhsl(247, 67%, 65%)
HSVhsv(247, 52%, 89%)
CMYKcmyk(46.5%, 52.2%, 0%, 11.4%)
CIE-LABlab(52.15, 34.81, -58.68)
CIE-LCHlch(52.15, 68.22, 300.68°)
OKLaboklab(60.16% 0.0446 -0.1671)
OKLCHoklch(60.16% 0.173 284.9)
XYZxyz(26.9712, 20.2798, 74.4300)
Luminance0.2028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CE2 #D5E26C
analogous
#6C9AE2 #796CE2 #B46CE2
triadic
#796CE2 #E2796C #6CE279
tetradic
#796CE2 #E26C9A #D5E26C #6CE2B4
square
#796CE2 #E26C9A #D5E26C #6CE2B4
split-complementary
#796CE2 #E2B46C #9AE26C
monochromatic
#3223B1 #4A39D8 #796CE2 #A89FEC #D6D2F6

Accessibility & contrast

On white

4.15
#796CE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#796CE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CE2
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CE2#FFFFFF#000000##000000
##796CE21.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3180E6
Deuteranopia (green-blind)
#2D79DF
Tritanopia (blue-blind)
#56869D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #796ce2;
/* rgb */ color: rgb(121, 108, 226);
/* oklch */ color: oklch(60.2% 0.173 284.9);
Tailwind
colors: {
  custom: {
    50: '#a696ec',
    500: '#796ce2',
    950: '#000000',
  },
}
SCSS
$custom: #796ce2;
$custom-light: #a696ec;
$custom-dark: #000000;
JSON
{
  "hex": "#796ce2",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 226
  },
  "hsl": {
    "h": 246.61,
    "s": 67.045,
    "l": 65.49
  },
  "oklch": {
    "l": 0.6016,
    "c": 0.17297,
    "h": 284.9
  },
  "luminance": 0.20281
}

Semantic roles & 50–950 ramp

primary
#796CE2
secondary
#E4E9C1
accent
#CF17BB
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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