#796FCD#796FCD

#796FCD is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.4% C 0.140 H 286.2°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#796FCD
RGBrgb(121, 111, 205)
HSLhsl(246, 48%, 62%)
HSVhsv(246, 46%, 80%)
CMYKcmyk(41%, 45.9%, 0%, 19.6%)
CIE-LABlab(51.66, 26.96, -47.57)
CIE-LCHlch(51.66, 54.68, 299.54°)
OKLaboklab(59.39% 0.039 -0.1345)
OKLCHoklch(59.39% 0.14 286.2)
XYZxyz(24.5859, 19.8407, 60.2800)
Luminance0.1984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FCD #C3CD6F
analogous
#6F94CD #796FCD #A86FCD
triadic
#796FCD #CD796F #6FCD79
tetradic
#796FCD #CD6F94 #C3CD6F #6FCDA8
square
#796FCD #CD6F94 #C3CD6F #6FCDA8
split-complementary
#796FCD #CDA86F #94CD6F
monochromatic
#3C3290 #4F42BD #796FCD #A39CDD #CECAED

Accessibility & contrast

On white

4.23
#796FCD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#796FCD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FCD
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FCD#FFFFFF#000000##000000
##796FCD1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #796fcd;
/* rgb */ color: rgb(121, 111, 205);
/* oklch */ color: oklch(59.4% 0.140 286.2);
Tailwind
colors: {
  custom: {
    50: '#a498dd',
    500: '#796fcd',
    950: '#000000',
  },
}
SCSS
$custom: #796fcd;
$custom-light: #a498dd;
$custom-dark: #000000;
JSON
{
  "hex": "#796fcd",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 205
  },
  "hsl": {
    "h": 246.383,
    "s": 48.454,
    "l": 61.961
  },
  "oklch": {
    "l": 0.59394,
    "c": 0.14007,
    "h": 286.2
  },
  "luminance": 0.19842
}

Semantic roles & 50–950 ramp

primary
#796FCD
secondary
#DADDBB
accent
#BC2AAC
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #796FCD

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

Preview Lab → · Contrast checker → · Palette generator →

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