#796DD2#796DD2

#796DD2 is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.3% C 0.150 H 286.3°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#796DD2
RGBrgb(121, 109, 210)
HSLhsl(247, 53%, 63%)
HSVhsv(247, 48%, 82%)
CMYKcmyk(42.4%, 48.1%, 0%, 17.6%)
CIE-LABlab(51.44, 29.58, -50.76)
CIE-LCHlch(51.44, 58.75, 300.23°)
OKLaboklab(59.32% 0.0421 -0.1439)
OKLCHoklch(59.32% 0.15 286.3)
XYZxyz(24.9833, 19.6544, 63.4376)
Luminance0.1966 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DD2 #C6D26D
analogous
#6D93D2 #796DD2 #AC6DD2
triadic
#796DD2 #D2796D #6DD279
tetradic
#796DD2 #D26D93 #C6D26D #6DD2AC
square
#796DD2 #D26D93 #C6D26D #6DD2AC
split-complementary
#796DD2 #D2AC6D #93D26D
monochromatic
#3B2E96 #4E3EC4 #796DD2 #A49CE0 #CFCBEF

Accessibility & contrast

On white

4.26
#796DD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#796DD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796DD2
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DD2#FFFFFF#000000##000000
##796DD21.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#447DD6
Deuteranopia (green-blind)
#4278D0
Tritanopia (blue-blind)
#5E8295
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #796dd2;
/* rgb */ color: rgb(121, 109, 210);
/* oklch */ color: oklch(59.3% 0.150 286.3);
Tailwind
colors: {
  custom: {
    50: '#a497e0',
    500: '#796dd2',
    950: '#000000',
  },
}
SCSS
$custom: #796dd2;
$custom-light: #a497e0;
$custom-dark: #000000;
JSON
{
  "hex": "#796dd2",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 210
  },
  "hsl": {
    "h": 247.129,
    "s": 52.88,
    "l": 62.549
  },
  "oklch": {
    "l": 0.59324,
    "c": 0.1499,
    "h": 286.3
  },
  "luminance": 0.19655
}

Semantic roles & 50–950 ramp

primary
#796DD2
secondary
#DBE0BB
accent
#C025AE
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #796DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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