#796FE5#796FE5

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

Color values

HEX#796FE5
RGBrgb(121, 111, 229)
HSLhsl(245, 69%, 67%)
HSVhsv(245, 52%, 90%)
CMYKcmyk(47.2%, 51.5%, 0%, 10.2%)
CIE-LABlab(53.05, 33.92, -58.93)
CIE-LCHlch(53.05, 67.99, 299.92°)
OKLaboklab(60.89% 0.0413 -0.1678)
OKLCHoklch(60.89% 0.173 283.8)
XYZxyz(27.7083, 21.0896, 76.7243)
Luminance0.2109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FE5 #DBE56F
analogous
#6FA0E5 #796FE5 #B46FE5
triadic
#796FE5 #E5796F #6FE579
tetradic
#796FE5 #E56FA0 #DBE56F #6FE5B4
square
#796FE5 #E56FA0 #DBE56F #6FE5B4
split-complementary
#796FE5 #E5B46F #A0E56F
monochromatic
#2E21B8 #493BDC #796FE5 #A9A3EE #D9D7F8

Accessibility & contrast

On white

4.02
#796FE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##796FE5#FFFFFF#000000##000000
##796FE51.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3582E9
Deuteranopia (green-blind)
#2F7BE2
Tritanopia (blue-blind)
#54899F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #796fe5;
/* rgb */ color: rgb(121, 111, 229);
/* oklch */ color: oklch(60.9% 0.173 283.8);
Tailwind
colors: {
  custom: {
    50: '#a698ee',
    500: '#796fe5',
    950: '#000000',
  },
}
SCSS
$custom: #796fe5;
$custom-light: #a698ee;
$custom-dark: #000000;
JSON
{
  "hex": "#796fe5",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 229
  },
  "hsl": {
    "h": 245.085,
    "s": 69.412,
    "l": 66.667
  },
  "oklch": {
    "l": 0.60888,
    "c": 0.17285,
    "h": 283.8
  },
  "luminance": 0.21091
}

Semantic roles & 50–950 ramp

primary
#796FE5
secondary
#E8EBC5
accent
#D114C1
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796FE5

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

Preview Lab → · Contrast checker → · Palette generator →

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