#796CF6#796CF6

#796CF6 is a mid, vivid blue. Relative luminance 0.214; OKLCH L 61.5% C 0.199 H 283.1°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#796CF6
RGBrgb(121, 108, 246)
HSLhsl(246, 88%, 69%)
HSVhsv(246, 56%, 96%)
CMYKcmyk(50.8%, 56.1%, 0%, 3.5%)
CIE-LABlab(53.43, 40.70, -67.81)
CIE-LCHlch(53.43, 79.08, 300.97°)
OKLaboklab(61.52% 0.0452 -0.194)
OKLCHoklch(61.52% 0.199 283.1)
XYZxyz(29.8772, 21.4423, 89.7354)
Luminance0.2144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CF6 #E9F66C
analogous
#6CA4F6 #796CF6 #BE6CF6
triadic
#796CF6 #F6796C #6CF679
tetradic
#796CF6 #F66CA4 #E9F66C #6CF6BE
square
#796CF6 #F66CA4 #E9F66C #6CF6BE
split-complementary
#796CF6 #F6BE6C #A4F66C
monochromatic
#210DDA #4432F2 #796CF6 #AEA6FA #E2DFFD

Accessibility & contrast

On white

3.97
#796CF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#796CF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CF6
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CF6#FFFFFF#000000##000000
##796CF61.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0084FB
Deuteranopia (green-blind)
#007BF3
Tritanopia (blue-blind)
#478CA7
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #796cf6;
/* rgb */ color: rgb(121, 108, 246);
/* oklch */ color: oklch(61.5% 0.199 283.1);
Tailwind
colors: {
  custom: {
    50: '#a896fa',
    500: '#796cf6',
    950: '#000000',
  },
}
SCSS
$custom: #796cf6;
$custom-light: #a896fa;
$custom-dark: #000000;
JSON
{
  "hex": "#796cf6",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 246
  },
  "hsl": {
    "h": 245.652,
    "s": 88.462,
    "l": 69.412
  },
  "oklch": {
    "l": 0.61518,
    "c": 0.19916,
    "h": 283.1
  },
  "luminance": 0.21444
}

Semantic roles & 50–950 ramp

primary
#796CF6
secondary
#EFF3CB
accent
#E500D0
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110D17
muted
#807E85

Preview Lab

Preview with #796CF6

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

Preview Lab → · Contrast checker → · Palette generator →

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