#796CCF#796CCF

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

Color values

HEX#796CCF
RGBrgb(121, 108, 207)
HSLhsl(248, 51%, 62%)
HSVhsv(248, 48%, 81%)
CMYKcmyk(41.5%, 47.8%, 0%, 18.8%)
CIE-LABlab(51.03, 29.32, -49.71)
CIE-LCHlch(51.03, 57.71, 300.53°)
OKLaboklab(58.96% 0.043 -0.1408)
OKLCHoklch(58.96% 0.147 287)
XYZxyz(24.5070, 19.2942, 61.4523)
Luminance0.1930 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CCF #C2CF6C
analogous
#6C91CF #796CCF #AB6CCF
triadic
#796CCF #CF796C #6CCF79
tetradic
#796CCF #CF6C91 #C2CF6C #6CCFAB
square
#796CCF #CF6C91 #C2CF6C #6CCFAB
split-complementary
#796CCF #CFAB6C #91CF6C
monochromatic
#3C2F91 #4F3EBF #796CCF #A39ADE #CDC8ED

Accessibility & contrast

On white

4.32
#796CCF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#796CCF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CCF
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CCF#FFFFFF#000000##000000
##796CCF1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#457CD3
Deuteranopia (green-blind)
#4477CD
Tritanopia (blue-blind)
#608094
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #796ccf;
/* rgb */ color: rgb(121, 108, 207);
/* oklch */ color: oklch(59.0% 0.147 287.0);
Tailwind
colors: {
  custom: {
    50: '#a496de',
    500: '#796ccf',
    950: '#000000',
  },
}
SCSS
$custom: #796ccf;
$custom-light: #a496de;
$custom-dark: #000000;
JSON
{
  "hex": "#796ccf",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 207
  },
  "hsl": {
    "h": 247.879,
    "s": 50.769,
    "l": 61.765
  },
  "oklch": {
    "l": 0.58957,
    "c": 0.14723,
    "h": 287
  },
  "luminance": 0.19295
}

Semantic roles & 50–950 ramp

primary
#796CCF
secondary
#D9DEB9
accent
#BE27AA
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #796CCF

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

Preview Lab → · Contrast checker → · Palette generator →

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