#796CEC#796CEC

#796CEC is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.8% C 0.186 H 284.0°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#796CEC
RGBrgb(121, 108, 236)
HSLhsl(246, 77%, 67%)
HSVhsv(246, 54%, 93%)
CMYKcmyk(48.7%, 54.2%, 0%, 7.5%)
CIE-LABlab(52.78, 37.74, -63.28)
CIE-LCHlch(52.78, 73.68, 300.81°)
OKLaboklab(60.83% 0.045 -0.1806)
OKLCHoklch(60.83% 0.186 284)
XYZxyz(28.3835, 20.8448, 81.8685)
Luminance0.2085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CEC #DFEC6C
analogous
#6C9FEC #796CEC #B96CEC
triadic
#796CEC #EC796C #6CEC79
tetradic
#796CEC #EC6C9F #DFEC6C #6CECB9
square
#796CEC #EC6C9F #DFEC6C #6CECB9
split-complementary
#796CEC #ECB96C #9FEC6C
monochromatic
#2B19C4 #4836E5 #796CEC #AAA2F3 #DCD8FA

Accessibility & contrast

On white

4.06
#796CEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#796CEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CEC
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CEC#FFFFFF#000000##000000
##796CEC1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2182F0
Deuteranopia (green-blind)
#167AE9
Tritanopia (blue-blind)
#4F89A2
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #796cec;
/* rgb */ color: rgb(121, 108, 236);
/* oklch */ color: oklch(60.8% 0.186 284.0);
Tailwind
colors: {
  custom: {
    50: '#a796f3',
    500: '#796cec',
    950: '#000000',
  },
}
SCSS
$custom: #796cec;
$custom-light: #a796f3;
$custom-dark: #000000;
JSON
{
  "hex": "#796cec",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 236
  },
  "hsl": {
    "h": 246.094,
    "s": 77.108,
    "l": 67.451
  },
  "oklch": {
    "l": 0.60828,
    "c": 0.18617,
    "h": 284
  },
  "luminance": 0.20846
}

Semantic roles & 50–950 ramp

primary
#796CEC
secondary
#EAEEC6
accent
#D90CC4
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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