#796CE5#796CE5

#796CE5 is a mid, vivid blue. Relative luminance 0.204; OKLCH L 60.4% C 0.177 H 284.6°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#796CE5
RGBrgb(121, 108, 229)
HSLhsl(246, 70%, 66%)
HSVhsv(246, 53%, 90%)
CMYKcmyk(47.2%, 52.8%, 0%, 10.2%)
CIE-LABlab(52.34, 35.69, -60.07)
CIE-LCHlch(52.34, 69.87, 300.71°)
OKLaboklab(60.36% 0.0448 -0.1712)
OKLCHoklch(60.36% 0.177 284.6)
XYZxyz(27.3864, 20.4459, 76.6170)
Luminance0.2045 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CE5 #D8E56C
analogous
#6C9BE5 #796CE5 #B56CE5
triadic
#796CE5 #E5796C #6CE579
tetradic
#796CE5 #E56C9B #D8E56C #6CE5B5
square
#796CE5 #E56C9B #D8E56C #6CE5B5
split-complementary
#796CE5 #E5B56C #9BE56C
monochromatic
#3020B6 #4A38DC #796CE5 #A8A0EE #D8D4F7

Accessibility & contrast

On white

4.13
#796CE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#796CE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CE5
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CE5#FFFFFF#000000##000000
##796CE51.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D80E9
Deuteranopia (green-blind)
#2779E2
Tritanopia (blue-blind)
#54869E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #796ce5;
/* rgb */ color: rgb(121, 108, 229);
/* oklch */ color: oklch(60.4% 0.177 284.6);
Tailwind
colors: {
  custom: {
    50: '#a696ee',
    500: '#796ce5',
    950: '#000000',
  },
}
SCSS
$custom: #796ce5;
$custom-light: #a696ee;
$custom-dark: #000000;
JSON
{
  "hex": "#796ce5",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 229
  },
  "hsl": {
    "h": 246.446,
    "s": 69.942,
    "l": 66.078
  },
  "oklch": {
    "l": 0.60358,
    "c": 0.17695,
    "h": 284.6
  },
  "luminance": 0.20447
}

Semantic roles & 50–950 ramp

primary
#796CE5
secondary
#E6EAC3
accent
#D214BD
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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