#796CE8#796CE8

#796CE8 is a mid, vivid blue. Relative luminance 0.206; OKLCH L 60.6% C 0.181 H 284.4°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#796CE8
RGBrgb(121, 108, 232)
HSLhsl(246, 73%, 67%)
HSVhsv(246, 53%, 91%)
CMYKcmyk(47.8%, 53.4%, 0%, 9%)
CIE-LABlab(52.53, 36.57, -61.45)
CIE-LCHlch(52.53, 71.51, 300.76°)
OKLaboklab(60.56% 0.0449 -0.1753)
OKLCHoklch(60.56% 0.181 284.4)
XYZxyz(27.8089, 20.6149, 78.8421)
Luminance0.2062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CE8 #DBE86C
analogous
#6C9DE8 #796CE8 #B76CE8
triadic
#796CE8 #E8796C #6CE879
tetradic
#796CE8 #E86C9D #DBE86C #6CE8B7
square
#796CE8 #E86C9D #DBE86C #6CE8B7
split-complementary
#796CE8 #E8B76C #9DE86C
monochromatic
#2E1DBC #4937E0 #796CE8 #A9A1F0 #D9D6F9

Accessibility & contrast

On white

4.10
#796CE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#796CE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CE8
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CE8#FFFFFF#000000##000000
##796CE81.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2881EC
Deuteranopia (green-blind)
#2179E5
Tritanopia (blue-blind)
#5287A0
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #796ce8;
/* rgb */ color: rgb(121, 108, 232);
/* oklch */ color: oklch(60.6% 0.181 284.4);
Tailwind
colors: {
  custom: {
    50: '#a796f0',
    500: '#796ce8',
    950: '#000000',
  },
}
SCSS
$custom: #796ce8;
$custom-light: #a796f0;
$custom-dark: #000000;
JSON
{
  "hex": "#796ce8",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 232
  },
  "hsl": {
    "h": 246.29,
    "s": 72.941,
    "l": 66.667
  },
  "oklch": {
    "l": 0.60558,
    "c": 0.18092,
    "h": 284.4
  },
  "luminance": 0.20616
}

Semantic roles & 50–950 ramp

primary
#796CE8
secondary
#E8ECC4
accent
#D510C0
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796CE8

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

Preview Lab → · Contrast checker → · Palette generator →

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