#796CCC#796CCC

#796CCC is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.8% C 0.143 H 287.4°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#796CCC
RGBrgb(121, 108, 204)
HSLhsl(248, 48%, 61%)
HSVhsv(248, 47%, 80%)
CMYKcmyk(40.7%, 47.1%, 0%, 20%)
CIE-LABlab(50.86, 28.47, -48.27)
CIE-LCHlch(50.86, 56.04, 300.53°)
OKLaboklab(58.78% 0.0427 -0.1366)
OKLCHoklch(58.78% 0.143 287.4)
XYZxyz(24.1437, 19.1489, 59.5390)
Luminance0.1915 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CCC #BFCC6C
analogous
#6C8FCC #796CCC #A96CCC
triadic
#796CCC #CC796C #6CCC79
tetradic
#796CCC #CC6C8F #BFCC6C #6CCCA9
square
#796CCC #CC6C8F #BFCC6C #6CCCA9
split-complementary
#796CCC #CCA96C #8FCC6C
monochromatic
#3D318D #5141BA #796CCC #A299DC #CCC7EC

Accessibility & contrast

On white

4.35
#796CCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#796CCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CCC
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CCC#FFFFFF#000000##000000
##796CCC1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#477BCF
Deuteranopia (green-blind)
#4677CA
Tritanopia (blue-blind)
#617F92
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #796ccc;
/* rgb */ color: rgb(121, 108, 204);
/* oklch */ color: oklch(58.8% 0.143 287.4);
Tailwind
colors: {
  custom: {
    50: '#a496dc',
    500: '#796ccc',
    950: '#000000',
  },
}
SCSS
$custom: #796ccc;
$custom-light: #a496dc;
$custom-dark: #000000;
JSON
{
  "hex": "#796ccc",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 204
  },
  "hsl": {
    "h": 248.125,
    "s": 48.485,
    "l": 61.176
  },
  "oklch": {
    "l": 0.58776,
    "c": 0.14309,
    "h": 287.4
  },
  "luminance": 0.1915
}

Semantic roles & 50–950 ramp

primary
#796CCC
secondary
#D7DCB8
accent
#BC2AA8
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #796CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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