#796CF0#796CF0

#796CF0 is a mid, vivid blue. Relative luminance 0.211; OKLCH L 61.1% C 0.191 H 283.6°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#796CF0
RGBrgb(121, 108, 240)
HSLhsl(246, 81%, 68%)
HSVhsv(246, 55%, 94%)
CMYKcmyk(49.6%, 55%, 0%, 5.9%)
CIE-LABlab(53.04, 38.92, -65.10)
CIE-LCHlch(53.04, 75.85, 300.88°)
OKLaboklab(61.1% 0.0451 -0.186)
OKLCHoklch(61.1% 0.191 283.6)
XYZxyz(28.9712, 21.0798, 84.9634)
Luminance0.2108 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CF0 #E3F06C
analogous
#6CA1F0 #796CF0 #BB6CF0
triadic
#796CF0 #F0796C #6CF079
tetradic
#796CF0 #F06CA1 #E3F06C #6CF0BB
square
#796CF0 #F06CA1 #E3F06C #6CF0BB
split-complementary
#796CF0 #F0BB6C #A1F06C
monochromatic
#2715CD #4634EA #796CF0 #ACA4F6 #DEDBFB

Accessibility & contrast

On white

4.03
#796CF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#796CF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CF0
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CF0#FFFFFF#000000##000000
##796CF01.004.035.225.22
#FFFFFF4.031.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1783F4
Deuteranopia (green-blind)
#027AED
Tritanopia (blue-blind)
#4C8AA4
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #796cf0;
/* rgb */ color: rgb(121, 108, 240);
/* oklch */ color: oklch(61.1% 0.191 283.6);
Tailwind
colors: {
  custom: {
    50: '#a896f6',
    500: '#796cf0',
    950: '#000000',
  },
}
SCSS
$custom: #796cf0;
$custom-light: #a896f6;
$custom-dark: #000000;
JSON
{
  "hex": "#796cf0",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 240
  },
  "hsl": {
    "h": 245.909,
    "s": 81.481,
    "l": 68.235
  },
  "oklch": {
    "l": 0.61101,
    "c": 0.19139,
    "h": 283.6
  },
  "luminance": 0.21081
}

Semantic roles & 50–950 ramp

primary
#796CF0
secondary
#ECF0C8
accent
#DE08C9
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796CF0

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

Preview Lab → · Contrast checker → · Palette generator →

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