#796BFB#796BFB

#796BFB is a mid, highly saturated blue. Relative luminance 0.215; OKLCH L 61.7% C 0.207 H 282.9°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#796BFB
RGBrgb(121, 107, 251)
HSLhsl(246, 95%, 70%)
HSVhsv(246, 57%, 98%)
CMYKcmyk(51.8%, 57.4%, 0%, 1.6%)
CIE-LABlab(53.54, 42.76, -70.40)
CIE-LCHlch(53.54, 82.37, 301.27°)
OKLaboklab(61.71% 0.0462 -0.2016)
OKLCHoklch(61.71% 0.207 282.9)
XYZxyz(30.5501, 21.5437, 93.7966)
Luminance0.2155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BFB #EDFB6B
analogous
#6BA5FB #796BFB #C16BFB
triadic
#796BFB #FB796B #6BFB79
tetradic
#796BFB #FB6BA5 #EDFB6B #6BFBC1
square
#796BFB #FB6BA5 #EDFB6B #6BFBC1
split-complementary
#796BFB #FBC16B #A5FB6B
monochromatic
#1C06E5 #432FF9 #796BFB #AFA7FD #E4E1FE

Accessibility & contrast

On white

3.96
#796BFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#796BFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BFB
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BFB#FFFFFF#000000##000000
##796BFB1.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0085FF
Deuteranopia (green-blind)
#007BF8
Tritanopia (blue-blind)
#438CA9
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #796bfb;
/* rgb */ color: rgb(121, 107, 251);
/* oklch */ color: oklch(61.7% 0.207 282.9);
Tailwind
colors: {
  custom: {
    50: '#a996fe',
    500: '#796bfb',
    950: '#000000',
  },
}
SCSS
$custom: #796bfb;
$custom-light: #a996fe;
$custom-dark: #000000;
JSON
{
  "hex": "#796bfb",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 251
  },
  "hsl": {
    "h": 245.833,
    "s": 94.737,
    "l": 70.196
  },
  "oklch": {
    "l": 0.61705,
    "c": 0.20684,
    "h": 282.9
  },
  "luminance": 0.21545
}

Semantic roles & 50–950 ramp

primary
#796BFB
secondary
#F1F5CD
accent
#E600CF
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110D18
muted
#807E86

Preview Lab

Preview with #796BFB

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

Preview Lab → · Contrast checker → · Palette generator →

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