#796BC1#796BC1

#796BC1 is a mid, vivid blue. Relative luminance 0.184; OKLCH L 57.9% C 0.129 H 289.2°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#796BC1
RGBrgb(121, 107, 193)
HSLhsl(250, 41%, 59%)
HSVhsv(250, 45%, 76%)
CMYKcmyk(37.3%, 44.6%, 0%, 24.3%)
CIE-LABlab(50.01, 25.98, -43.31)
CIE-LCHlch(50.01, 50.50, 300.95°)
OKLaboklab(57.94% 0.0425 -0.1221)
OKLCHoklch(57.94% 0.129 289.2)
XYZxyz(22.7659, 18.4300, 52.7996)
Luminance0.1843 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BC1 #B3C16B
analogous
#6B88C1 #796BC1 #A46BC1
triadic
#796BC1 #C1796B #6BC179
tetradic
#796BC1 #C16B88 #B3C16B #6BC1A4
square
#796BC1 #C16B88 #B3C16B #6BC1A4
split-complementary
#796BC1 #C1A46B #88C16B
monochromatic
#40347D #5647A8 #796BC1 #A096D3 #C7C1E5

Accessibility & contrast

On white

4.48
#796BC1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#796BC1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BC1
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BC1#FFFFFF#000000##000000
##796BC11.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D79C4
Deuteranopia (green-blind)
#4E75BF
Tritanopia (blue-blind)
#667C8D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #796bc1;
/* rgb */ color: rgb(121, 107, 193);
/* oklch */ color: oklch(57.9% 0.129 289.2);
Tailwind
colors: {
  custom: {
    50: '#a395d4',
    500: '#796bc1',
    950: '#000000',
  },
}
SCSS
$custom: #796bc1;
$custom-light: #a395d4;
$custom-dark: #000000;
JSON
{
  "hex": "#796bc1",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 193
  },
  "hsl": {
    "h": 249.767,
    "s": 40.952,
    "l": 58.824
  },
  "oklch": {
    "l": 0.57941,
    "c": 0.12926,
    "h": 289.2
  },
  "luminance": 0.18431
}

Semantic roles & 50–950 ramp

primary
#796BC1
secondary
#CFD5B3
accent
#D157BD
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #796BC1

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

Preview Lab → · Contrast checker → · Palette generator →

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