#796CD3#796CD3

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

Color values

HEX#796CD3
RGBrgb(121, 108, 211)
HSLhsl(248, 54%, 63%)
HSVhsv(248, 49%, 83%)
CMYKcmyk(42.7%, 48.8%, 0%, 17.3%)
CIE-LABlab(51.26, 30.46, -51.62)
CIE-LCHlch(51.26, 59.94, 300.54°)
OKLaboklab(59.2% 0.0435 -0.1464)
OKLCHoklch(59.2% 0.153 286.5)
XYZxyz(25.0022, 19.4923, 64.0604)
Luminance0.1949 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CD3 #C6D36C
analogous
#6C92D3 #796CD3 #AD6CD3
triadic
#796CD3 #D3796C #6CD379
tetradic
#796CD3 #D36C92 #C6D36C #6CD3AD
square
#796CD3 #D36C92 #C6D36C #6CD3AD
split-complementary
#796CD3 #D3AD6C #92D36C
monochromatic
#3B2D97 #4E3DC5 #796CD3 #A49BE1 #CFCAEF

Accessibility & contrast

On white

4.29
#796CD3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#796CD3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CD3
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CD3#FFFFFF#000000##000000
##796CD31.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#417DD7
Deuteranopia (green-blind)
#4077D1
Tritanopia (blue-blind)
#5E8195
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #796cd3;
/* rgb */ color: rgb(121, 108, 211);
/* oklch */ color: oklch(59.2% 0.153 286.5);
Tailwind
colors: {
  custom: {
    50: '#a496e1',
    500: '#796cd3',
    950: '#000000',
  },
}
SCSS
$custom: #796cd3;
$custom-light: #a496e1;
$custom-dark: #000000;
JSON
{
  "hex": "#796cd3",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 211
  },
  "hsl": {
    "h": 247.573,
    "s": 53.927,
    "l": 62.549
  },
  "oklch": {
    "l": 0.59203,
    "c": 0.15272,
    "h": 286.5
  },
  "luminance": 0.19493
}

Semantic roles & 50–950 ramp

primary
#796CD3
secondary
#DBE0BB
accent
#C124AE
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #796CD3

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

Preview Lab → · Contrast checker → · Palette generator →

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