#796CCB#796CCB

#796CCB is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.7% C 0.142 H 287.5°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#796CCB
RGBrgb(121, 108, 203)
HSLhsl(248, 48%, 61%)
HSVhsv(248, 47%, 80%)
CMYKcmyk(40.4%, 46.8%, 0%, 20.4%)
CIE-LABlab(50.81, 28.18, -47.79)
CIE-LCHlch(50.81, 55.48, 300.53°)
OKLaboklab(58.72% 0.0426 -0.1352)
OKLCHoklch(58.72% 0.142 287.5)
XYZxyz(24.0242, 19.1011, 58.9094)
Luminance0.1910 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CCB #BECB6C
analogous
#6C8ECB #796CCB #A86CCB
triadic
#796CCB #CB796C #6CCB79
tetradic
#796CCB #CB6C8E #BECB6C #6CCBA8
square
#796CCB #CB6C8E #BECB6C #6CCBA8
split-complementary
#796CCB #CBA86C #8ECB6C
monochromatic
#3E318B #5241B9 #796CCB #A299DB #CBC6EB

Accessibility & contrast

On white

4.36
#796CCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#796CCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CCB
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CCB#FFFFFF#000000##000000
##796CCB1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#487BCE
Deuteranopia (green-blind)
#4776C9
Tritanopia (blue-blind)
#627F92
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #796ccb;
/* rgb */ color: rgb(121, 108, 203);
/* oklch */ color: oklch(58.7% 0.142 287.5);
Tailwind
colors: {
  custom: {
    50: '#a496db',
    500: '#796ccb',
    950: '#000000',
  },
}
SCSS
$custom: #796ccb;
$custom-light: #a496db;
$custom-dark: #000000;
JSON
{
  "hex": "#796ccb",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 203
  },
  "hsl": {
    "h": 248.211,
    "s": 47.739,
    "l": 60.98
  },
  "oklch": {
    "l": 0.58716,
    "c": 0.14171,
    "h": 287.5
  },
  "luminance": 0.19102
}

Semantic roles & 50–950 ramp

primary
#796CCB
secondary
#D6DBB7
accent
#BB2AA7
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #796CCB

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

Preview Lab → · Contrast checker → · Palette generator →

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