#796CE4#796CE4

#796CE4 is a mid, vivid blue. Relative luminance 0.204; OKLCH L 60.3% C 0.176 H 284.7°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#796CE4
RGBrgb(121, 108, 228)
HSLhsl(247, 69%, 66%)
HSVhsv(247, 53%, 89%)
CMYKcmyk(46.9%, 52.6%, 0%, 10.6%)
CIE-LABlab(52.28, 35.39, -59.60)
CIE-LCHlch(52.28, 69.32, 300.70°)
OKLaboklab(60.29% 0.0447 -0.1698)
OKLCHoklch(60.29% 0.176 284.7)
XYZxyz(27.2472, 20.3902, 75.8838)
Luminance0.2039 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CE4 #D7E46C
analogous
#6C9BE4 #796CE4 #B56CE4
triadic
#796CE4 #E4796C #6CE479
tetradic
#796CE4 #E46C9B #D7E46C #6CE4B5
square
#796CE4 #E46C9B #D7E46C #6CE4B5
split-complementary
#796CE4 #E4B56C #9BE46C
monochromatic
#3121B4 #4A38DB #796CE4 #A8A0ED #D7D3F7

Accessibility & contrast

On white

4.14
#796CE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#796CE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CE4
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CE4#FFFFFF#000000##000000
##796CE41.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F80E8
Deuteranopia (green-blind)
#2979E1
Tritanopia (blue-blind)
#55869E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #796ce4;
/* rgb */ color: rgb(121, 108, 228);
/* oklch */ color: oklch(60.3% 0.176 284.7);
Tailwind
colors: {
  custom: {
    50: '#a696ed',
    500: '#796ce4',
    950: '#000000',
  },
}
SCSS
$custom: #796ce4;
$custom-light: #a696ed;
$custom-dark: #000000;
JSON
{
  "hex": "#796ce4",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 228
  },
  "hsl": {
    "h": 246.5,
    "s": 68.966,
    "l": 65.882
  },
  "oklch": {
    "l": 0.60292,
    "c": 0.17562,
    "h": 284.7
  },
  "luminance": 0.20392
}

Semantic roles & 50–950 ramp

primary
#796CE4
secondary
#E5EAC2
accent
#D115BD
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796CE4

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

Preview Lab → · Contrast checker → · Palette generator →

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