#796CEF#796CEF

#796CEF is a mid, vivid blue. Relative luminance 0.210; OKLCH L 61.0% C 0.190 H 283.7°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#796CEF
RGBrgb(121, 108, 239)
HSLhsl(246, 80%, 68%)
HSVhsv(246, 55%, 94%)
CMYKcmyk(49.4%, 54.8%, 0%, 6.3%)
CIE-LABlab(52.97, 38.63, -64.65)
CIE-LCHlch(52.97, 75.31, 300.86°)
OKLaboklab(61.03% 0.0451 -0.1847)
OKLCHoklch(61.03% 0.19 283.7)
XYZxyz(28.8230, 21.0206, 84.1833)
Luminance0.2102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CEF #E2EF6C
analogous
#6CA0EF #796CEF #BA6CEF
triadic
#796CEF #EF796C #6CEF79
tetradic
#796CEF #EF6CA0 #E2EF6C #6CEFBA
square
#796CEF #EF6CA0 #E2EF6C #6CEFBA
split-complementary
#796CEF #EFBA6C #A0EF6C
monochromatic
#2816CB #4735E9 #796CEF #ABA3F5 #DEDAFB

Accessibility & contrast

On white

4.04
#796CEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#796CEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CEF
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CEF#FFFFFF#000000##000000
##796CEF1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A83F3
Deuteranopia (green-blind)
#087AEC
Tritanopia (blue-blind)
#4D89A3
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #796cef;
/* rgb */ color: rgb(121, 108, 239);
/* oklch */ color: oklch(61.0% 0.190 283.7);
Tailwind
colors: {
  custom: {
    50: '#a796f5',
    500: '#796cef',
    950: '#000000',
  },
}
SCSS
$custom: #796cef;
$custom-light: #a796f5;
$custom-dark: #000000;
JSON
{
  "hex": "#796cef",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 239
  },
  "hsl": {
    "h": 245.954,
    "s": 80.368,
    "l": 68.039
  },
  "oklch": {
    "l": 0.61033,
    "c": 0.19009,
    "h": 283.7
  },
  "luminance": 0.21022
}

Semantic roles & 50–950 ramp

primary
#796CEF
secondary
#EBEFC7
accent
#DD09C8
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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