#796BF5#796BF5

#796BF5 is a mid, vivid blue. Relative luminance 0.212; OKLCH L 61.3% C 0.199 H 283.4°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#796BF5
RGBrgb(121, 107, 245)
HSLhsl(246, 87%, 69%)
HSVhsv(246, 56%, 96%)
CMYKcmyk(50.6%, 56.3%, 0%, 3.9%)
CIE-LABlab(53.14, 40.98, -67.72)
CIE-LCHlch(53.14, 79.16, 301.18°)
OKLaboklab(61.28% 0.0462 -0.1937)
OKLCHoklch(61.28% 0.199 283.4)
XYZxyz(29.6193, 21.1713, 88.8943)
Luminance0.2117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BF5 #E7F56B
analogous
#6BA2F5 #796BF5 #BE6BF5
triadic
#796BF5 #F5796B #6BF579
tetradic
#796BF5 #F56BA2 #E7F56B #6BF5BE
square
#796BF5 #F56BA2 #E7F56B #6BF5BE
split-complementary
#796BF5 #F5BE6B #A2F56B
monochromatic
#230FD7 #4532F1 #796BF5 #ADA4F9 #E1DEFD

Accessibility & contrast

On white

4.01
#796BF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#796BF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BF5
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BF5#FFFFFF#000000##000000
##796BF51.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FA
Deuteranopia (green-blind)
#007AF2
Tritanopia (blue-blind)
#488BA6
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #796bf5;
/* rgb */ color: rgb(121, 107, 245);
/* oklch */ color: oklch(61.3% 0.199 283.4);
Tailwind
colors: {
  custom: {
    50: '#a896f9',
    500: '#796bf5',
    950: '#000000',
  },
}
SCSS
$custom: #796bf5;
$custom-light: #a896f9;
$custom-dark: #000000;
JSON
{
  "hex": "#796bf5",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 245
  },
  "hsl": {
    "h": 246.087,
    "s": 87.342,
    "l": 69.02
  },
  "oklch": {
    "l": 0.6128,
    "c": 0.19916,
    "h": 283.4
  },
  "luminance": 0.21173
}

Semantic roles & 50–950 ramp

primary
#796BF5
secondary
#EEF2CA
accent
#E402CD
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110D17
muted
#807E85

Preview Lab

Preview with #796BF5

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

Preview Lab → · Contrast checker → · Palette generator →

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