#796BD8#796BD8

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

Color values

HEX#796BD8
RGBrgb(121, 107, 216)
HSLhsl(248, 58%, 63%)
HSVhsv(248, 50%, 85%)
CMYKcmyk(44%, 50.5%, 0%, 15.3%)
CIE-LABlab(51.31, 32.50, -54.38)
CIE-LCHlch(51.31, 63.35, 300.86°)
OKLaboklab(59.34% 0.0451 -0.1545)
OKLCHoklch(59.34% 0.161 286.3)
XYZxyz(25.5340, 19.5372, 67.3781)
Luminance0.1954 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BD8 #CAD86B
analogous
#6B93D8 #796BD8 #AF6BD8
triadic
#796BD8 #D8796B #6BD879
tetradic
#796BD8 #D86B93 #CAD86B #6BD8AF
square
#796BD8 #D86B93 #CAD86B #6BD8AF
split-complementary
#796BD8 #D8AF6B #93D86B
monochromatic
#392A9F #4D3BCB #796BD8 #A59BE5 #D1CCF2

Accessibility & contrast

On white

4.28
#796BD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#796BD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BD8
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BD8#FFFFFF#000000##000000
##796BD81.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B7DDC
Deuteranopia (green-blind)
#3977D6
Tritanopia (blue-blind)
#5C8297
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #796bd8;
/* rgb */ color: rgb(121, 107, 216);
/* oklch */ color: oklch(59.3% 0.161 286.3);
Tailwind
colors: {
  custom: {
    50: '#a595e5',
    500: '#796bd8',
    950: '#000000',
  },
}
SCSS
$custom: #796bd8;
$custom-light: #a595e5;
$custom-dark: #000000;
JSON
{
  "hex": "#796bd8",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 216
  },
  "hsl": {
    "h": 247.706,
    "s": 58.289,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59336,
    "c": 0.16095,
    "h": 286.3
  },
  "luminance": 0.19538
}

Semantic roles & 50–950 ramp

primary
#796BD8
secondary
#DEE3BC
accent
#C620B1
background
#FAF9FE
surface
#F4F1FC
border
#CECBD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796BD8

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

Preview Lab → · Contrast checker → · Palette generator →

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