#796BCA#796BCA

#796BCA is a mid, vivid blue. Relative luminance 0.188; OKLCH L 58.5% C 0.142 H 288.0°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#796BCA
RGBrgb(121, 107, 202)
HSLhsl(249, 47%, 61%)
HSVhsv(249, 47%, 79%)
CMYKcmyk(40.1%, 47%, 0%, 20.8%)
CIE-LABlab(50.50, 28.50, -47.70)
CIE-LCHlch(50.50, 55.56, 300.86°)
OKLaboklab(58.47% 0.0437 -0.1349)
OKLCHoklch(58.47% 0.142 288)
XYZxyz(23.8006, 18.8438, 58.2489)
Luminance0.1885 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BCA #BCCA6B
analogous
#6B8CCA #796BCA #A86BCA
triadic
#796BCA #CA796B #6BCA79
tetradic
#796BCA #CA6B8C #BCCA6B #6BCAA8
square
#796BCA #CA6B8C #BCCA6B #6BCAA8
split-complementary
#796BCA #CAA86B #8CCA6B
monochromatic
#3E3189 #5341B6 #796BCA #A298DA #CBC5EA

Accessibility & contrast

On white

4.40
#796BCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#796BCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BCA
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BCA#FFFFFF#000000##000000
##796BCA1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#477ACD
Deuteranopia (green-blind)
#4776C8
Tritanopia (blue-blind)
#627E91
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #796bca;
/* rgb */ color: rgb(121, 107, 202);
/* oklch */ color: oklch(58.5% 0.142 288.0);
Tailwind
colors: {
  custom: {
    50: '#a395da',
    500: '#796bca',
    950: '#000000',
  },
}
SCSS
$custom: #796bca;
$custom-light: #a395da;
$custom-dark: #000000;
JSON
{
  "hex": "#796bca",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 202
  },
  "hsl": {
    "h": 248.842,
    "s": 47.264,
    "l": 60.588
  },
  "oklch": {
    "l": 0.58471,
    "c": 0.1418,
    "h": 288
  },
  "luminance": 0.18845
}

Semantic roles & 50–950 ramp

primary
#796BCA
secondary
#D5DAB6
accent
#BB2BA5
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #796BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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