#796FCC#796FCC

#796FCC is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.3% C 0.139 H 286.3°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#796FCC
RGBrgb(121, 111, 204)
HSLhsl(246, 48%, 62%)
HSVhsv(246, 46%, 80%)
CMYKcmyk(40.7%, 45.6%, 0%, 20%)
CIE-LABlab(51.60, 26.67, -47.09)
CIE-LCHlch(51.60, 54.12, 299.53°)
OKLaboklab(59.34% 0.0389 -0.1331)
OKLCHoklch(59.34% 0.139 286.3)
XYZxyz(24.4656, 19.7926, 59.6463)
Luminance0.1979 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FCC #C2CC6F
analogous
#6F94CC #796FCC #A86FCC
triadic
#796FCC #CC796F #6FCC79
tetradic
#796FCC #CC6F94 #C2CC6F #6FCCA8
square
#796FCC #CC6F94 #C2CC6F #6FCCA8
split-complementary
#796FCC #CCA86F #94CC6F
monochromatic
#3C328E #4F42BB #796FCC #A39CDC #CDC9EC

Accessibility & contrast

On white

4.24
#796FCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#796FCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FCC
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FCC#FFFFFF#000000##000000
##796FCC1.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C7DCF
Deuteranopia (green-blind)
#4A78CA
Tritanopia (blue-blind)
#618294
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #796fcc;
/* rgb */ color: rgb(121, 111, 204);
/* oklch */ color: oklch(59.3% 0.139 286.3);
Tailwind
colors: {
  custom: {
    50: '#a498dc',
    500: '#796fcc',
    950: '#000000',
  },
}
SCSS
$custom: #796fcc;
$custom-light: #a498dc;
$custom-dark: #000000;
JSON
{
  "hex": "#796fcc",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 204
  },
  "hsl": {
    "h": 246.452,
    "s": 47.692,
    "l": 61.765
  },
  "oklch": {
    "l": 0.59335,
    "c": 0.13867,
    "h": 286.3
  },
  "luminance": 0.19793
}

Semantic roles & 50–950 ramp

primary
#796FCC
secondary
#D9DDBA
accent
#BB2BAB
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #796FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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