#796CD2#796CD2

#796CD2 is a mid, vivid blue. Relative luminance 0.194; OKLCH L 59.1% C 0.151 H 286.6°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#796CD2
RGBrgb(121, 108, 210)
HSLhsl(248, 53%, 62%)
HSVhsv(248, 49%, 82%)
CMYKcmyk(42.4%, 48.6%, 0%, 17.6%)
CIE-LABlab(51.20, 30.18, -51.15)
CIE-LCHlch(51.20, 59.39, 300.54°)
OKLaboklab(59.14% 0.0434 -0.145)
OKLCHoklch(59.14% 0.151 286.6)
XYZxyz(24.8773, 19.4423, 63.4022)
Luminance0.1944 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CD2 #C5D26C
analogous
#6C92D2 #796CD2 #AC6CD2
triadic
#796CD2 #D2796C #6CD279
tetradic
#796CD2 #D26C92 #C5D26C #6CD2AC
square
#796CD2 #D26C92 #C5D26C #6CD2AC
split-complementary
#796CD2 #D2AC6C #92D26C
monochromatic
#3B2E96 #4E3DC4 #796CD2 #A49BE0 #CECAEF

Accessibility & contrast

On white

4.30
#796CD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#796CD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CD2
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CD2#FFFFFF#000000##000000
##796CD21.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#427DD6
Deuteranopia (green-blind)
#4177D0
Tritanopia (blue-blind)
#5F8195
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #796cd2;
/* rgb */ color: rgb(121, 108, 210);
/* oklch */ color: oklch(59.1% 0.151 286.6);
Tailwind
colors: {
  custom: {
    50: '#a496e0',
    500: '#796cd2',
    950: '#000000',
  },
}
SCSS
$custom: #796cd2;
$custom-light: #a496e0;
$custom-dark: #000000;
JSON
{
  "hex": "#796cd2",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 210
  },
  "hsl": {
    "h": 247.647,
    "s": 53.125,
    "l": 62.353
  },
  "oklch": {
    "l": 0.59141,
    "c": 0.15135,
    "h": 286.6
  },
  "luminance": 0.19443
}

Semantic roles & 50–950 ramp

primary
#796CD2
secondary
#DBE0BA
accent
#C125AD
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #796CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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