#796BCC#796BCC

#796BCC is a mid, vivid blue. Relative luminance 0.189; OKLCH L 58.6% C 0.145 H 287.7°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#796BCC
RGBrgb(121, 107, 204)
HSLhsl(249, 49%, 61%)
HSVhsv(249, 48%, 80%)
CMYKcmyk(40.7%, 47.5%, 0%, 20%)
CIE-LABlab(50.62, 29.06, -48.66)
CIE-LCHlch(50.62, 56.68, 300.85°)
OKLaboklab(58.59% 0.044 -0.1377)
OKLCHoklch(58.59% 0.145 287.7)
XYZxyz(24.0389, 18.9392, 59.5041)
Luminance0.1894 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BCC #BECC6B
analogous
#6B8DCC #796BCC #A96BCC
triadic
#796BCC #CC796B #6BCC79
tetradic
#796BCC #CC6B8D #BECC6B #6BCCA9
square
#796BCC #CC6B8D #BECC6B #6BCCA9
split-complementary
#796BCC #CCA96B #8DCC6B
monochromatic
#3E308C #5240BA #796BCC #A299DC #CBC6EB

Accessibility & contrast

On white

4.39
#796BCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#796BCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BCC
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BCC#FFFFFF#000000##000000
##796BCC1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#457BD0
Deuteranopia (green-blind)
#4576CA
Tritanopia (blue-blind)
#617F92
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #796bcc;
/* rgb */ color: rgb(121, 107, 204);
/* oklch */ color: oklch(58.6% 0.145 287.7);
Tailwind
colors: {
  custom: {
    50: '#a495dc',
    500: '#796bcc',
    950: '#000000',
  },
}
SCSS
$custom: #796bcc;
$custom-light: #a495dc;
$custom-dark: #000000;
JSON
{
  "hex": "#796bcc",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 204
  },
  "hsl": {
    "h": 248.66,
    "s": 48.744,
    "l": 60.98
  },
  "oklch": {
    "l": 0.58591,
    "c": 0.14457,
    "h": 287.7
  },
  "luminance": 0.1894
}

Semantic roles & 50–950 ramp

primary
#796BCC
secondary
#D6DCB7
accent
#BC29A7
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #796BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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