#796FE4#796FE4

#796FE4 is a mid, vivid blue. Relative luminance 0.210; OKLCH L 60.8% C 0.172 H 283.9°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#796FE4
RGBrgb(121, 111, 228)
HSLhsl(245, 68%, 66%)
HSVhsv(245, 51%, 89%)
CMYKcmyk(46.9%, 51.3%, 0%, 10.6%)
CIE-LABlab(52.99, 33.62, -58.46)
CIE-LCHlch(52.99, 67.44, 299.90°)
OKLaboklab(60.82% 0.0413 -0.1665)
OKLCHoklch(60.82% 0.172 283.9)
XYZxyz(27.5690, 21.0340, 75.9911)
Luminance0.2104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FE4 #DAE46F
analogous
#6FA0E4 #796FE4 #B46FE4
triadic
#796FE4 #E4796F #6FE479
tetradic
#796FE4 #E46FA0 #DAE46F #6FE4B4
square
#796FE4 #E46FA0 #DAE46F #6FE4B4
split-complementary
#796FE4 #E4B46F #A0E46F
monochromatic
#2F22B6 #493BDA #796FE4 #A9A3EE #D9D6F7

Accessibility & contrast

On white

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

On black

5.21
#796FE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FE4
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FE4#FFFFFF#000000##000000
##796FE41.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3682E8
Deuteranopia (green-blind)
#317BE1
Tritanopia (blue-blind)
#54889F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #796fe4;
/* rgb */ color: rgb(121, 111, 228);
/* oklch */ color: oklch(60.8% 0.172 283.9);
Tailwind
colors: {
  custom: {
    50: '#a698ed',
    500: '#796fe4',
    950: '#000000',
  },
}
SCSS
$custom: #796fe4;
$custom-light: #a698ed;
$custom-dark: #000000;
JSON
{
  "hex": "#796fe4",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 228
  },
  "hsl": {
    "h": 245.128,
    "s": 68.421,
    "l": 66.471
  },
  "oklch": {
    "l": 0.60823,
    "c": 0.17151,
    "h": 283.9
  },
  "luminance": 0.21035
}

Semantic roles & 50–950 ramp

primary
#796FE4
secondary
#E7EAC4
accent
#D015C0
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796FE4

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

Preview Lab → · Contrast checker → · Palette generator →

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