#796FD1#796FD1

#796FD1 is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.6% C 0.146 H 285.7°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#796FD1
RGBrgb(121, 111, 209)
HSLhsl(246, 52%, 63%)
HSVhsv(246, 47%, 82%)
CMYKcmyk(42.1%, 46.9%, 0%, 18%)
CIE-LABlab(51.88, 28.10, -49.50)
CIE-LCHlch(51.88, 56.92, 299.58°)
OKLaboklab(59.63% 0.0395 -0.1402)
OKLCHoklch(59.63% 0.146 285.7)
XYZxyz(25.0749, 20.0363, 62.8554)
Luminance0.2004 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FD1 #C7D16F
analogous
#6F96D1 #796FD1 #AA6FD1
triadic
#796FD1 #D1796F #6FD179
tetradic
#796FD1 #D16F96 #C7D16F #6FD1AA
square
#796FD1 #D16F96 #C7D16F #6FD1AA
split-complementary
#796FD1 #D1AA6F #96D16F
monochromatic
#3A3096 #4E41C2 #796FD1 #A49DE0 #CFCCEF

Accessibility & contrast

On white

4.19
#796FD1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#796FD1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FD1
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FD1#FFFFFF#000000##000000
##796FD11.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#497ED5
Deuteranopia (green-blind)
#4679CF
Tritanopia (blue-blind)
#5F8396
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #796fd1;
/* rgb */ color: rgb(121, 111, 209);
/* oklch */ color: oklch(59.6% 0.146 285.7);
Tailwind
colors: {
  custom: {
    50: '#a498df',
    500: '#796fd1',
    950: '#000000',
  },
}
SCSS
$custom: #796fd1;
$custom-light: #a498df;
$custom-dark: #000000;
JSON
{
  "hex": "#796fd1",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 209
  },
  "hsl": {
    "h": 246.122,
    "s": 51.579,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59633,
    "c": 0.14563,
    "h": 285.7
  },
  "luminance": 0.20037
}

Semantic roles & 50–950 ramp

primary
#796FD1
secondary
#DCE0BC
accent
#BF27AF
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #796FD1

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

Preview Lab → · Contrast checker → · Palette generator →

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