#796DCC#796DCC

#796DCC is a mid, vivid blue. Relative luminance 0.194; OKLCH L 59.0% C 0.142 H 287.0°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#796DCC
RGBrgb(121, 109, 204)
HSLhsl(248, 48%, 61%)
HSVhsv(248, 47%, 80%)
CMYKcmyk(40.7%, 46.6%, 0%, 20%)
CIE-LABlab(51.11, 27.87, -47.88)
CIE-LCHlch(51.11, 55.40, 300.20°)
OKLaboklab(58.96% 0.0414 -0.1354)
OKLCHoklch(58.96% 0.142 287)
XYZxyz(24.2498, 19.3610, 59.5744)
Luminance0.1936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DCC #C0CC6D
analogous
#6D91CC #796DCC #A96DCC
triadic
#796DCC #CC796D #6DCC79
tetradic
#796DCC #CC6D91 #C0CC6D #6DCCA9
square
#796DCC #CC6D91 #C0CC6D #6DCCA9
split-complementary
#796DCC #CCA96D #91CC6D
monochromatic
#3D318D #5141BB #796DCC #A39ADC #CCC8EC

Accessibility & contrast

On white

4.31
#796DCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#796DCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796DCC
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DCC#FFFFFF#000000##000000
##796DCC1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#497CCF
Deuteranopia (green-blind)
#4877CA
Tritanopia (blue-blind)
#618093
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #796dcc;
/* rgb */ color: rgb(121, 109, 204);
/* oklch */ color: oklch(59.0% 0.142 287.0);
Tailwind
colors: {
  custom: {
    50: '#a497dc',
    500: '#796dcc',
    950: '#000000',
  },
}
SCSS
$custom: #796dcc;
$custom-light: #a497dc;
$custom-dark: #000000;
JSON
{
  "hex": "#796dcc",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 204
  },
  "hsl": {
    "h": 247.579,
    "s": 48.223,
    "l": 61.373
  },
  "oklch": {
    "l": 0.58961,
    "c": 0.14161,
    "h": 287
  },
  "luminance": 0.19362
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #796DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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