#796DEC#796DEC

#796DEC is a mid, vivid blue. Relative luminance 0.211; OKLCH L 61.0% C 0.185 H 283.7°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#796DEC
RGBrgb(121, 109, 236)
HSLhsl(246, 77%, 68%)
HSVhsv(246, 54%, 93%)
CMYKcmyk(48.7%, 53.8%, 0%, 7.5%)
CIE-LABlab(53.01, 37.16, -62.91)
CIE-LCHlch(53.01, 73.06, 300.57°)
OKLaboklab(61% 0.0439 -0.1795)
OKLCHoklch(61% 0.185 283.7)
XYZxyz(28.4896, 21.0569, 81.9038)
Luminance0.2106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DEC #E0EC6D
analogous
#6DA1EC #796DEC #B86DEC
triadic
#796DEC #EC796D #6DEC79
tetradic
#796DEC #EC6DA1 #E0EC6D #6DECB8
square
#796DEC #EC6DA1 #E0EC6D #6DECB8
split-complementary
#796DEC #ECB86D #A1EC6D
monochromatic
#2A1AC5 #4737E5 #796DEC #ABA3F3 #DCD9FA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796DEC#FFFFFF#000000##000000
##796DEC1.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)
#2583F0
Deuteranopia (green-blind)
#1A7AE9
Tritanopia (blue-blind)
#4F89A2
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #796dec;
/* rgb */ color: rgb(121, 109, 236);
/* oklch */ color: oklch(61.0% 0.185 283.7);
Tailwind
colors: {
  custom: {
    50: '#a797f3',
    500: '#796dec',
    950: '#000000',
  },
}
SCSS
$custom: #796dec;
$custom-light: #a797f3;
$custom-dark: #000000;
JSON
{
  "hex": "#796dec",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 236
  },
  "hsl": {
    "h": 245.669,
    "s": 76.97,
    "l": 67.647
  },
  "oklch": {
    "l": 0.61001,
    "c": 0.18484,
    "h": 283.7
  },
  "luminance": 0.21058
}

Semantic roles & 50–950 ramp

primary
#796DEC
secondary
#EAEEC7
accent
#D90CC6
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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