#796ECC#796ECC

#796ECC is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.1% C 0.140 H 286.6°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#796ECC
RGBrgb(121, 110, 204)
HSLhsl(247, 48%, 62%)
HSVhsv(247, 46%, 80%)
CMYKcmyk(40.7%, 46.1%, 0%, 20%)
CIE-LABlab(51.35, 27.27, -47.49)
CIE-LCHlch(51.35, 54.76, 299.87°)
OKLaboklab(59.15% 0.0402 -0.1343)
OKLCHoklch(59.15% 0.14 286.6)
XYZxyz(24.3571, 19.5756, 59.6101)
Luminance0.1958 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796ECC #C1CC6E
analogous
#6E92CC #796ECC #A86ECC
triadic
#796ECC #CC796E #6ECC79
tetradic
#796ECC #CC6E92 #C1CC6E #6ECCA8
square
#796ECC #CC6E92 #C1CC6E #6ECCA8
split-complementary
#796ECC #CCA86E #92CC6E
monochromatic
#3D328E #5042BB #796ECC #A39BDC #CDC9EC

Accessibility & contrast

On white

4.27
#796ECC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#796ECC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796ECC
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796ECC#FFFFFF#000000##000000
##796ECC1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B7DCF
Deuteranopia (green-blind)
#4978CA
Tritanopia (blue-blind)
#618193
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #796ecc;
/* rgb */ color: rgb(121, 110, 204);
/* oklch */ color: oklch(59.1% 0.140 286.6);
Tailwind
colors: {
  custom: {
    50: '#a497dc',
    500: '#796ecc',
    950: '#000000',
  },
}
SCSS
$custom: #796ecc;
$custom-light: #a497dc;
$custom-dark: #000000;
JSON
{
  "hex": "#796ecc",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 204
  },
  "hsl": {
    "h": 247.021,
    "s": 47.959,
    "l": 61.569
  },
  "oklch": {
    "l": 0.59147,
    "c": 0.14014,
    "h": 286.6
  },
  "luminance": 0.19576
}

Semantic roles & 50–950 ramp

primary
#796ECC
secondary
#D8DCB9
accent
#BB2AAA
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #796ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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