#796FD6#796FD6

#796FD6 is a mid, vivid blue. Relative luminance 0.203; OKLCH L 59.9% C 0.153 H 285.2°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#796FD6
RGBrgb(121, 111, 214)
HSLhsl(246, 56%, 64%)
HSVhsv(246, 48%, 84%)
CMYKcmyk(43.5%, 48.1%, 0%, 16.1%)
CIE-LABlab(52.16, 29.54, -51.88)
CIE-LCHlch(52.16, 59.70, 299.65°)
OKLaboklab(59.94% 0.0401 -0.1472)
OKLCHoklch(59.94% 0.153 285.2)
XYZxyz(25.7037, 20.2878, 66.1669)
Luminance0.2029 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FD6 #CCD66F
analogous
#6F98D6 #796FD6 #AC6FD6
triadic
#796FD6 #D6796F #6FD679
tetradic
#796FD6 #D66F98 #CCD66F #6FD6AC
square
#796FD6 #D66F98 #CCD66F #6FD6AC
split-complementary
#796FD6 #D6AC6F #98D66F
monochromatic
#382D9E #4D3FC8 #796FD6 #A59FE4 #D2CEF1

Accessibility & contrast

On white

4.15
#796FD6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#796FD6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FD6
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FD6#FFFFFF#000000##000000
##796FD61.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#457FDA
Deuteranopia (green-blind)
#4279D4
Tritanopia (blue-blind)
#5C8498
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #796fd6;
/* rgb */ color: rgb(121, 111, 214);
/* oklch */ color: oklch(59.9% 0.153 285.2);
Tailwind
colors: {
  custom: {
    50: '#a498e3',
    500: '#796fd6',
    950: '#000000',
  },
}
SCSS
$custom: #796fd6;
$custom-light: #a498e3;
$custom-dark: #000000;
JSON
{
  "hex": "#796fd6",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 214
  },
  "hsl": {
    "h": 245.825,
    "s": 55.676,
    "l": 63.725
  },
  "oklch": {
    "l": 0.59937,
    "c": 0.15252,
    "h": 285.2
  },
  "luminance": 0.20289
}

Semantic roles & 50–950 ramp

primary
#796FD6
secondary
#DFE3BE
accent
#C322B4
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D15
muted
#7F7E84

Preview Lab

Preview with #796FD6

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

Preview Lab → · Contrast checker → · Palette generator →

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