#796CD1#796CD1

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

Color values

HEX#796CD1
RGBrgb(121, 108, 209)
HSLhsl(248, 52%, 62%)
HSVhsv(248, 48%, 82%)
CMYKcmyk(42.1%, 48.3%, 0%, 18%)
CIE-LABlab(51.14, 29.89, -50.67)
CIE-LCHlch(51.14, 58.83, 300.54°)
OKLaboklab(59.08% 0.0432 -0.1436)
OKLCHoklch(59.08% 0.15 286.8)
XYZxyz(24.7531, 19.3926, 62.7482)
Luminance0.1939 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CD1 #C4D16C
analogous
#6C91D1 #796CD1 #AC6CD1
triadic
#796CD1 #D1796C #6CD179
tetradic
#796CD1 #D16C91 #C4D16C #6CD1AC
square
#796CD1 #D16C91 #C4D16C #6CD1AC
split-complementary
#796CD1 #D1AC6C #91D16C
monochromatic
#3B2E94 #4F3DC2 #796CD1 #A39BE0 #CEC9EE

Accessibility & contrast

On white

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

On black

4.88
#796CD1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CD1
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CD1#FFFFFF#000000##000000
##796CD11.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#437CD5
Deuteranopia (green-blind)
#4277CF
Tritanopia (blue-blind)
#5F8195
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #796cd1;
/* rgb */ color: rgb(121, 108, 209);
/* oklch */ color: oklch(59.1% 0.150 286.8);
Tailwind
colors: {
  custom: {
    50: '#a496e0',
    500: '#796cd1',
    950: '#000000',
  },
}
SCSS
$custom: #796cd1;
$custom-light: #a496e0;
$custom-dark: #000000;
JSON
{
  "hex": "#796cd1",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 209
  },
  "hsl": {
    "h": 247.723,
    "s": 52.332,
    "l": 62.157
  },
  "oklch": {
    "l": 0.5908,
    "c": 0.14998,
    "h": 286.8
  },
  "luminance": 0.19394
}

Semantic roles & 50–950 ramp

primary
#796CD1
secondary
#DADFBA
accent
#C026AC
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #796CD1

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

Preview Lab → · Contrast checker → · Palette generator →

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