#796FE2#796FE2

#796FE2 is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.7% C 0.169 H 284.1°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#796FE2
RGBrgb(121, 111, 226)
HSLhsl(245, 66%, 66%)
HSVhsv(245, 51%, 89%)
CMYKcmyk(46.5%, 50.9%, 0%, 11.4%)
CIE-LABlab(52.87, 33.03, -57.53)
CIE-LCHlch(52.87, 66.34, 299.86°)
OKLaboklab(60.69% 0.0411 -0.1637)
OKLCHoklch(60.69% 0.169 284.1)
XYZxyz(27.2930, 20.9235, 74.5373)
Luminance0.2092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FE2 #D8E26F
analogous
#6F9EE2 #796FE2 #B26FE2
triadic
#796FE2 #E2796F #6FE279
tetradic
#796FE2 #E26F9E #D8E26F #6FE2B2
square
#796FE2 #E26F9E #D8E26F #6FE2B2
split-complementary
#796FE2 #E2B26F #9EE26F
monochromatic
#3024B3 #4A3CD8 #796FE2 #A8A2EC #D8D5F7

Accessibility & contrast

On white

4.05
#796FE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#796FE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FE2
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FE2#FFFFFF#000000##000000
##796FE21.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3982E6
Deuteranopia (green-blind)
#337BDF
Tritanopia (blue-blind)
#55889E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #796fe2;
/* rgb */ color: rgb(121, 111, 226);
/* oklch */ color: oklch(60.7% 0.169 284.1);
Tailwind
colors: {
  custom: {
    50: '#a698ec',
    500: '#796fe2',
    950: '#000000',
  },
}
SCSS
$custom: #796fe2;
$custom-light: #a698ec;
$custom-dark: #000000;
JSON
{
  "hex": "#796fe2",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 226
  },
  "hsl": {
    "h": 245.217,
    "s": 66.474,
    "l": 66.078
  },
  "oklch": {
    "l": 0.60693,
    "c": 0.16883,
    "h": 284.1
  },
  "luminance": 0.20925
}

Semantic roles & 50–950 ramp

primary
#796FE2
secondary
#E6E9C4
accent
#CE17BE
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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