#796EC2#796EC2

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

Color values

HEX#796EC2
RGBrgb(121, 110, 194)
HSLhsl(248, 41%, 60%)
HSVhsv(248, 43%, 76%)
CMYKcmyk(37.6%, 43.3%, 0%, 23.9%)
CIE-LABlab(50.82, 24.46, -42.61)
CIE-LCHlch(50.82, 49.13, 299.85°)
OKLaboklab(58.57% 0.0387 -0.12)
OKLCHoklch(58.57% 0.126 287.9)
XYZxyz(23.1960, 19.1112, 53.4951)
Luminance0.1911 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796EC2 #B7C26E
analogous
#6E8DC2 #796EC2 #A36EC2
triadic
#796EC2 #C2796E #6EC279
tetradic
#796EC2 #C26E8D #B7C26E #6EC2A3
square
#796EC2 #C26E8D #B7C26E #6EC2A3
split-complementary
#796EC2 #C2A36E #8DC26E
monochromatic
#3F3680 #5548AB #796EC2 #A199D4 #C9C4E6

Accessibility & contrast

On white

4.35
#796EC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##796EC2#FFFFFF#000000##000000
##796EC21.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#517BC5
Deuteranopia (green-blind)
#5177C0
Tritanopia (blue-blind)
#667E8F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #796ec2;
/* rgb */ color: rgb(121, 110, 194);
/* oklch */ color: oklch(58.6% 0.126 287.9);
Tailwind
colors: {
  custom: {
    50: '#a397d5',
    500: '#796ec2',
    950: '#000000',
  },
}
SCSS
$custom: #796ec2;
$custom-light: #a397d5;
$custom-dark: #000000;
JSON
{
  "hex": "#796ec2",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 194
  },
  "hsl": {
    "h": 247.857,
    "s": 40.777,
    "l": 59.608
  },
  "oklch": {
    "l": 0.58567,
    "c": 0.12611,
    "h": 287.9
  },
  "luminance": 0.19112
}

Semantic roles & 50–950 ramp

primary
#796EC2
secondary
#D2D6B6
accent
#D157C1
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #796EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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