#796CD8#796CD8

#796CD8 is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.5% C 0.160 H 286.0°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#796CD8
RGBrgb(121, 108, 216)
HSLhsl(247, 58%, 64%)
HSVhsv(247, 50%, 85%)
CMYKcmyk(44%, 50%, 0%, 15.3%)
CIE-LABlab(51.55, 31.90, -54.00)
CIE-LCHlch(51.55, 62.72, 300.58°)
OKLaboklab(59.52% 0.0439 -0.1534)
OKLCHoklch(59.52% 0.16 286)
XYZxyz(25.6388, 19.7469, 67.4131)
Luminance0.1975 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CD8 #CBD86C
analogous
#6C95D8 #796CD8 #AF6CD8
triadic
#796CD8 #D8796C #6CD879
tetradic
#796CD8 #D86C95 #CBD86C #6CD8AF
square
#796CD8 #D86C95 #CBD86C #6CD8AF
split-complementary
#796CD8 #D8AF6C #95D86C
monochromatic
#382A9F #4D3CCB #796CD8 #A59CE5 #D1CDF2

Accessibility & contrast

On white

4.24
#796CD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#796CD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CD8
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CD8#FFFFFF#000000##000000
##796CD81.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D7EDC
Deuteranopia (green-blind)
#3A78D6
Tritanopia (blue-blind)
#5B8398
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #796cd8;
/* rgb */ color: rgb(121, 108, 216);
/* oklch */ color: oklch(59.5% 0.160 286.0);
Tailwind
colors: {
  custom: {
    50: '#a596e5',
    500: '#796cd8',
    950: '#000000',
  },
}
SCSS
$custom: #796cd8;
$custom-light: #a596e5;
$custom-dark: #000000;
JSON
{
  "hex": "#796cd8",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 216
  },
  "hsl": {
    "h": 247.222,
    "s": 58.065,
    "l": 63.529
  },
  "oklch": {
    "l": 0.59516,
    "c": 0.15953,
    "h": 286
  },
  "luminance": 0.19748
}

Semantic roles & 50–950 ramp

primary
#796CD8
secondary
#DEE3BD
accent
#C620B2
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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