#796BD6#796BD6

#796BD6 is a mid, vivid blue. Relative luminance 0.194; OKLCH L 59.2% C 0.158 H 286.5°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#796BD6
RGBrgb(121, 107, 214)
HSLhsl(248, 57%, 63%)
HSVhsv(248, 50%, 84%)
CMYKcmyk(43.5%, 50%, 0%, 16.1%)
CIE-LABlab(51.19, 31.92, -53.43)
CIE-LCHlch(51.19, 62.24, 300.85°)
OKLaboklab(59.21% 0.0449 -0.1517)
OKLCHoklch(59.21% 0.158 286.5)
XYZxyz(25.2770, 19.4344, 66.0247)
Luminance0.1943 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BD6 #C8D66B
analogous
#6B93D6 #796BD6 #AE6BD6
triadic
#796BD6 #D6796B #6BD679
tetradic
#796BD6 #D66B93 #C8D66B #6BD6AE
square
#796BD6 #D66B93 #C8D66B #6BD6AE
split-complementary
#796BD6 #D6AE6B #93D66B
monochromatic
#3A2B9C #4E3BC9 #796BD6 #A49BE3 #D0CBF1

Accessibility & contrast

On white

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

On black

4.89
#796BD6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BD6
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BD6#FFFFFF#000000##000000
##796BD61.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D7DDA
Deuteranopia (green-blind)
#3B77D4
Tritanopia (blue-blind)
#5D8196
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #796bd6;
/* rgb */ color: rgb(121, 107, 214);
/* oklch */ color: oklch(59.2% 0.158 286.5);
Tailwind
colors: {
  custom: {
    50: '#a595e3',
    500: '#796bd6',
    950: '#000000',
  },
}
SCSS
$custom: #796bd6;
$custom-light: #a595e3;
$custom-dark: #000000;
JSON
{
  "hex": "#796bd6",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 214
  },
  "hsl": {
    "h": 247.85,
    "s": 56.614,
    "l": 62.941
  },
  "oklch": {
    "l": 0.59209,
    "c": 0.15824,
    "h": 286.5
  },
  "luminance": 0.19435
}

Semantic roles & 50–950 ramp

primary
#796BD6
secondary
#DDE2BB
accent
#C421AF
background
#FAF9FE
surface
#F4F1FC
border
#CECBD5
text
#100D15
muted
#7F7E84

Preview Lab

Preview with #796BD6

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

Preview Lab → · Contrast checker → · Palette generator →

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