#796CF5#796CF5

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

Color values

HEX#796CF5
RGBrgb(121, 108, 245)
HSLhsl(246, 87%, 69%)
HSVhsv(246, 56%, 96%)
CMYKcmyk(50.6%, 55.9%, 0%, 3.9%)
CIE-LABlab(53.36, 40.40, -67.36)
CIE-LCHlch(53.36, 78.55, 300.96°)
OKLaboklab(61.45% 0.0452 -0.1926)
OKLCHoklch(61.45% 0.198 283.2)
XYZxyz(29.7242, 21.3810, 88.9292)
Luminance0.2138 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CF5 #E8F56C
analogous
#6CA4F5 #796CF5 #BD6CF5
triadic
#796CF5 #F5796C #6CF579
tetradic
#796CF5 #F56CA4 #E8F56C #6CF5BD
square
#796CF5 #F56CA4 #E8F56C #6CF5BD
split-complementary
#796CF5 #F5BD6C #A4F56C
monochromatic
#220FD8 #4533F1 #796CF5 #ADA5F9 #E1DFFD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796CF5#FFFFFF#000000##000000
##796CF51.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)
#0084FA
Deuteranopia (green-blind)
#007BF2
Tritanopia (blue-blind)
#488BA6
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #796cf5;
/* rgb */ color: rgb(121, 108, 245);
/* oklch */ color: oklch(61.4% 0.198 283.2);
Tailwind
colors: {
  custom: {
    50: '#a896f9',
    500: '#796cf5',
    950: '#000000',
  },
}
SCSS
$custom: #796cf5;
$custom-light: #a896f9;
$custom-dark: #000000;
JSON
{
  "hex": "#796cf5",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 245
  },
  "hsl": {
    "h": 245.693,
    "s": 87.261,
    "l": 69.216
  },
  "oklch": {
    "l": 0.61448,
    "c": 0.19786,
    "h": 283.2
  },
  "luminance": 0.21383
}

Semantic roles & 50–950 ramp

primary
#796CF5
secondary
#EFF2CA
accent
#E402CE
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110D17
muted
#807E85

Preview Lab

Preview with #796CF5

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

Preview Lab → · Contrast checker → · Palette generator →

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