#796CE9#796CE9

#796CE9 is a mid, vivid blue. Relative luminance 0.207; OKLCH L 60.6% C 0.182 H 284.3°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#796CE9
RGBrgb(121, 108, 233)
HSLhsl(246, 74%, 67%)
HSVhsv(246, 54%, 91%)
CMYKcmyk(48.1%, 53.6%, 0%, 8.6%)
CIE-LABlab(52.59, 36.86, -61.91)
CIE-LCHlch(52.59, 72.05, 300.77°)
OKLaboklab(60.62% 0.0449 -0.1766)
OKLCHoklch(60.62% 0.182 284.3)
XYZxyz(27.9513, 20.6719, 79.5923)
Luminance0.2067 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CE9 #DCE96C
analogous
#6C9EE9 #796CE9 #B86CE9
triadic
#796CE9 #E9796C #6CE979
tetradic
#796CE9 #E96C9E #DCE96C #6CE9B8
square
#796CE9 #E96C9E #DCE96C #6CE9B8
split-complementary
#796CE9 #E9B86C #9EE96C
monochromatic
#2D1CBE #4837E1 #796CE9 #AAA1F1 #DAD6F9

Accessibility & contrast

On white

4.09
#796CE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#796CE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CE9
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CE9#FFFFFF#000000##000000
##796CE91.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2781ED
Deuteranopia (green-blind)
#1F7AE6
Tritanopia (blue-blind)
#5188A0
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #796ce9;
/* rgb */ color: rgb(121, 108, 233);
/* oklch */ color: oklch(60.6% 0.182 284.3);
Tailwind
colors: {
  custom: {
    50: '#a796f1',
    500: '#796ce9',
    950: '#000000',
  },
}
SCSS
$custom: #796ce9;
$custom-light: #a796f1;
$custom-dark: #000000;
JSON
{
  "hex": "#796ce9",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 233
  },
  "hsl": {
    "h": 246.24,
    "s": 73.964,
    "l": 66.863
  },
  "oklch": {
    "l": 0.60625,
    "c": 0.18224,
    "h": 284.3
  },
  "luminance": 0.20673
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #796CE9

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

Preview Lab → · Contrast checker → · Palette generator →

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