#796CFB#796CFB

#796CFB is a mid, highly saturated blue. Relative luminance 0.218; OKLCH L 61.9% C 0.206 H 282.7°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#796CFB
RGBrgb(121, 108, 251)
HSLhsl(245, 95%, 70%)
HSVhsv(245, 57%, 98%)
CMYKcmyk(51.8%, 57%, 0%, 1.6%)
CIE-LABlab(53.76, 42.18, -70.04)
CIE-LCHlch(53.76, 81.76, 301.06°)
OKLaboklab(61.87% 0.0452 -0.2005)
OKLCHoklch(61.87% 0.206 282.7)
XYZxyz(30.6550, 21.7534, 93.8316)
Luminance0.2175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CFB #EEFB6C
analogous
#6CA6FB #796CFB #C16CFB
triadic
#796CFB #FB796C #6CFB79
tetradic
#796CFB #FB6CA6 #EEFB6C #6CFBC1
square
#796CFB #FB6CA6 #EEFB6C #6CFBC1
split-complementary
#796CFB #FBC16C #A6FB6C
monochromatic
#1B06E6 #4330F9 #796CFB #AFA8FD #E4E1FE

Accessibility & contrast

On white

3.92
#796CFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#796CFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CFB
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CFB#FFFFFF#000000##000000
##796CFB1.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #796cfb;
/* rgb */ color: rgb(121, 108, 251);
/* oklch */ color: oklch(61.9% 0.206 282.7);
Tailwind
colors: {
  custom: {
    50: '#a996fe',
    500: '#796cfb',
    950: '#000000',
  },
}
SCSS
$custom: #796cfb;
$custom-light: #a996fe;
$custom-dark: #000000;
JSON
{
  "hex": "#796cfb",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 251
  },
  "hsl": {
    "h": 245.455,
    "s": 94.702,
    "l": 70.392
  },
  "oklch": {
    "l": 0.61871,
    "c": 0.20556,
    "h": 282.7
  },
  "luminance": 0.21755
}

Semantic roles & 50–950 ramp

primary
#796CFB
secondary
#F1F5CE
accent
#E600D1
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110D18
muted
#807E86

Preview Lab

Preview with #796CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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