#796DD6#796DD6

#796DD6 is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.6% C 0.155 H 285.9°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#796DD6
RGBrgb(121, 109, 214)
HSLhsl(247, 56%, 63%)
HSVhsv(247, 49%, 84%)
CMYKcmyk(43.5%, 49.1%, 0%, 16.1%)
CIE-LABlab(51.67, 30.73, -52.66)
CIE-LCHlch(51.67, 60.97, 300.26°)
OKLaboklab(59.57% 0.0425 -0.1494)
OKLCHoklch(59.57% 0.155 285.9)
XYZxyz(25.4879, 19.8562, 66.0950)
Luminance0.1986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DD6 #CAD66D
analogous
#6D95D6 #796DD6 #AD6DD6
triadic
#796DD6 #D6796D #6DD679
tetradic
#796DD6 #D66D95 #CAD66D #6DD6AD
square
#796DD6 #D66D95 #CAD66D #6DD6AD
split-complementary
#796DD6 #D6AD6D #95D66D
monochromatic
#392C9D #4D3DC9 #796DD6 #A59DE3 #D1CDF1

Accessibility & contrast

On white

4.22
#796DD6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##796DD6#FFFFFF#000000##000000
##796DD61.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#417EDA
Deuteranopia (green-blind)
#3E78D4
Tritanopia (blue-blind)
#5C8397
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #796dd6;
/* rgb */ color: rgb(121, 109, 214);
/* oklch */ color: oklch(59.6% 0.155 285.9);
Tailwind
colors: {
  custom: {
    50: '#a597e3',
    500: '#796dd6',
    950: '#000000',
  },
}
SCSS
$custom: #796dd6;
$custom-light: #a597e3;
$custom-dark: #000000;
JSON
{
  "hex": "#796dd6",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 214
  },
  "hsl": {
    "h": 246.857,
    "s": 56.15,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59571,
    "c": 0.15538,
    "h": 285.9
  },
  "luminance": 0.19857
}

Semantic roles & 50–950 ramp

primary
#796DD6
secondary
#DEE2BD
accent
#C422B1
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D15
muted
#7F7E84

Preview Lab

Preview with #796DD6

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

Preview Lab → · Contrast checker → · Palette generator →

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