#796BEF#796BEF

#796BEF is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.9% C 0.191 H 284.0°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#796BEF
RGBrgb(121, 107, 239)
HSLhsl(246, 80%, 68%)
HSVhsv(246, 55%, 94%)
CMYKcmyk(49.4%, 55.2%, 0%, 6.3%)
CIE-LABlab(52.74, 39.21, -65.02)
CIE-LCHlch(52.74, 75.93, 301.09°)
OKLaboklab(60.86% 0.0462 -0.1858)
OKLCHoklch(60.86% 0.191 284)
XYZxyz(28.7182, 20.8109, 84.1483)
Luminance0.2081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BEF #E1EF6B
analogous
#6B9FEF #796BEF #BB6BEF
triadic
#796BEF #EF796B #6BEF79
tetradic
#796BEF #EF6B9F #E1EF6B #6BEFBB
square
#796BEF #EF6B9F #E1EF6B #6BEFBB
split-complementary
#796BEF #EFBB6B #9FEF6B
monochromatic
#2916CA #4734E9 #796BEF #ABA2F5 #DDD9FB

Accessibility & contrast

On white

4.07
#796BEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#796BEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BEF
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BEF#FFFFFF#000000##000000
##796BEF1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1482F3
Deuteranopia (green-blind)
#007AEC
Tritanopia (blue-blind)
#4D89A3
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #796bef;
/* rgb */ color: rgb(121, 107, 239);
/* oklch */ color: oklch(60.9% 0.191 284.0);
Tailwind
colors: {
  custom: {
    50: '#a796f5',
    500: '#796bef',
    950: '#000000',
  },
}
SCSS
$custom: #796bef;
$custom-light: #a796f5;
$custom-dark: #000000;
JSON
{
  "hex": "#796bef",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 239
  },
  "hsl": {
    "h": 246.364,
    "s": 80.488,
    "l": 67.843
  },
  "oklch": {
    "l": 0.60862,
    "c": 0.19142,
    "h": 284
  },
  "luminance": 0.20812
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #796BEF

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

Preview Lab → · Contrast checker → · Palette generator →

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