#796DF2#796DF2

#796DF2 is a mid, vivid blue. Relative luminance 0.214; OKLCH L 61.4% C 0.193 H 283.2°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#796DF2
RGBrgb(121, 109, 242)
HSLhsl(245, 84%, 69%)
HSVhsv(245, 55%, 95%)
CMYKcmyk(50%, 55%, 0%, 5.1%)
CIE-LABlab(53.40, 38.93, -65.63)
CIE-LCHlch(53.40, 76.31, 300.67°)
OKLaboklab(61.41% 0.0441 -0.1876)
OKLCHoklch(61.41% 0.193 283.2)
XYZxyz(29.3760, 21.4115, 86.5721)
Luminance0.2141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DF2 #E6F26D
analogous
#6DA4F2 #796DF2 #BC6DF2
triadic
#796DF2 #F2796D #6DF279
tetradic
#796DF2 #F26DA4 #E6F26D #6DF2BC
square
#796DF2 #F26DA4 #E6F26D #6DF2BC
split-complementary
#796DF2 #F2BC6D #A4F26D
monochromatic
#2413D2 #4535ED #796DF2 #ADA5F7 #E0DDFC

Accessibility & contrast

On white

3.98
#796DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#796DF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796DF2
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DF2#FFFFFF#000000##000000
##796DF21.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1684F7
Deuteranopia (green-blind)
#007BEF
Tritanopia (blue-blind)
#4B8BA5
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #796df2;
/* rgb */ color: rgb(121, 109, 242);
/* oklch */ color: oklch(61.4% 0.193 283.2);
Tailwind
colors: {
  custom: {
    50: '#a897f7',
    500: '#796df2',
    950: '#000000',
  },
}
SCSS
$custom: #796df2;
$custom-light: #a897f7;
$custom-dark: #000000;
JSON
{
  "hex": "#796df2",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 242
  },
  "hsl": {
    "h": 245.414,
    "s": 83.648,
    "l": 68.824
  },
  "oklch": {
    "l": 0.6141,
    "c": 0.19268,
    "h": 283.2
  },
  "luminance": 0.21413
}

Semantic roles & 50–950 ramp

primary
#796DF2
secondary
#EEF1CA
accent
#E005CC
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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