#796CE7#796CE7

#796CE7 is a mid, vivid blue. Relative luminance 0.206; OKLCH L 60.5% C 0.180 H 284.5°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#796CE7
RGBrgb(121, 108, 231)
HSLhsl(246, 72%, 66%)
HSVhsv(246, 53%, 91%)
CMYKcmyk(47.6%, 53.2%, 0%, 9.4%)
CIE-LABlab(52.46, 36.27, -60.99)
CIE-LCHlch(52.46, 70.96, 300.74°)
OKLaboklab(60.49% 0.0448 -0.1739)
OKLCHoklch(60.49% 0.18 284.5)
XYZxyz(27.6672, 20.5583, 78.0961)
Luminance0.2056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CE7 #DAE76C
analogous
#6C9DE7 #796CE7 #B66CE7
triadic
#796CE7 #E7796C #6CE779
tetradic
#796CE7 #E76C9D #DAE76C #6CE7B6
square
#796CE7 #E76C9D #DAE76C #6CE7B6
split-complementary
#796CE7 #E7B66C #9DE76C
monochromatic
#2F1EBA #4937DE #796CE7 #A9A1F0 #D9D5F8

Accessibility & contrast

On white

4.11
#796CE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#796CE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CE7
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CE7#FFFFFF#000000##000000
##796CE71.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A81EB
Deuteranopia (green-blind)
#2379E4
Tritanopia (blue-blind)
#53879F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #796ce7;
/* rgb */ color: rgb(121, 108, 231);
/* oklch */ color: oklch(60.5% 0.180 284.5);
Tailwind
colors: {
  custom: {
    50: '#a696ef',
    500: '#796ce7',
    950: '#000000',
  },
}
SCSS
$custom: #796ce7;
$custom-light: #a696ef;
$custom-dark: #000000;
JSON
{
  "hex": "#796ce7",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 231
  },
  "hsl": {
    "h": 246.341,
    "s": 71.93,
    "l": 66.471
  },
  "oklch": {
    "l": 0.60491,
    "c": 0.1796,
    "h": 284.5
  },
  "luminance": 0.2056
}

Semantic roles & 50–950 ramp

primary
#796CE7
secondary
#E7EBC3
accent
#D412BF
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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