#796BF7#796BF7

#796BF7 is a mid, highly saturated blue. Relative luminance 0.213; OKLCH L 61.4% C 0.202 H 283.2°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#796BF7
RGBrgb(121, 107, 247)
HSLhsl(246, 90%, 69%)
HSVhsv(246, 57%, 97%)
CMYKcmyk(51%, 56.7%, 0%, 3.1%)
CIE-LABlab(53.27, 41.58, -68.62)
CIE-LCHlch(53.27, 80.23, 301.21°)
OKLaboklab(61.42% 0.0462 -0.1964)
OKLCHoklch(61.42% 0.202 283.2)
XYZxyz(29.9263, 21.2941, 90.5109)
Luminance0.2130 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BF7 #E9F76B
analogous
#6BA3F7 #796BF7 #BF6BF7
triadic
#796BF7 #F7796B #6BF779
tetradic
#796BF7 #F76BA3 #E9F76B #6BF7BF
square
#796BF7 #F76BA3 #E9F76B #6BF7BF
split-complementary
#796BF7 #F7BF6B #A3F76B
monochromatic
#210CDC #4431F4 #796BF7 #AEA5FA #E2DFFD

Accessibility & contrast

On white

3.99
#796BF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#796BF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BF7
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BF7#FFFFFF#000000##000000
##796BF71.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0084FC
Deuteranopia (green-blind)
#007BF4
Tritanopia (blue-blind)
#478BA7
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #796bf7;
/* rgb */ color: rgb(121, 107, 247);
/* oklch */ color: oklch(61.4% 0.202 283.2);
Tailwind
colors: {
  custom: {
    50: '#a896fb',
    500: '#796bf7',
    950: '#000000',
  },
}
SCSS
$custom: #796bf7;
$custom-light: #a896fb;
$custom-dark: #000000;
JSON
{
  "hex": "#796bf7",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 247
  },
  "hsl": {
    "h": 246,
    "s": 89.744,
    "l": 69.412
  },
  "oklch": {
    "l": 0.61421,
    "c": 0.20173,
    "h": 283.2
  },
  "luminance": 0.21296
}

Semantic roles & 50–950 ramp

primary
#796BF7
secondary
#EFF3CB
accent
#E600CF
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110D17
muted
#807E85

Preview Lab

Preview with #796BF7

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

Preview Lab → · Contrast checker → · Palette generator →

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