#796EF5#796EF5

#796EF5 is a mid, vivid blue. Relative luminance 0.218; OKLCH L 61.8% C 0.195 H 282.7°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#796EF5
RGBrgb(121, 110, 245)
HSLhsl(245, 87%, 70%)
HSVhsv(245, 55%, 96%)
CMYKcmyk(50.6%, 55.1%, 0%, 3.9%)
CIE-LABlab(53.82, 39.24, -66.62)
CIE-LCHlch(53.82, 77.31, 300.50°)
OKLaboklab(61.79% 0.0431 -0.1905)
OKLCHoklch(61.79% 0.195 282.7)
XYZxyz(29.9375, 21.8077, 89.0003)
Luminance0.2181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796EF5 #EAF56E
analogous
#6EA7F5 #796EF5 #BD6EF5
triadic
#796EF5 #F5796E #6EF579
tetradic
#796EF5 #F56EA7 #EAF56E #6EF5BD
square
#796EF5 #F56EA7 #EAF56E #6EF5BD
split-complementary
#796EF5 #F5BD6E #A7F56E
monochromatic
#200FDA #4435F1 #796EF5 #AEA7F9 #E3E1FD

Accessibility & contrast

On white

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

On black

5.36
#796EF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796EF5
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796EF5#FFFFFF#000000##000000
##796EF51.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1285FA
Deuteranopia (green-blind)
#007CF2
Tritanopia (blue-blind)
#488DA7
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #796ef5;
/* rgb */ color: rgb(121, 110, 245);
/* oklch */ color: oklch(61.8% 0.195 282.7);
Tailwind
colors: {
  custom: {
    50: '#a898f9',
    500: '#796ef5',
    950: '#000000',
  },
}
SCSS
$custom: #796ef5;
$custom-light: #a898f9;
$custom-dark: #000000;
JSON
{
  "hex": "#796ef5",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 245
  },
  "hsl": {
    "h": 244.889,
    "s": 87.097,
    "l": 69.608
  },
  "oklch": {
    "l": 0.61788,
    "c": 0.19527,
    "h": 282.7
  },
  "luminance": 0.21809
}

Semantic roles & 50–950 ramp

primary
#796EF5
secondary
#F0F3CC
accent
#E402D1
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110D17
muted
#807E85

Preview Lab

Preview with #796EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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