#796BEB#796BEB

#796BEB is a mid, vivid blue. Relative luminance 0.206; OKLCH L 60.6% C 0.186 H 284.3°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#796BEB
RGBrgb(121, 107, 235)
HSLhsl(247, 76%, 67%)
HSVhsv(247, 54%, 92%)
CMYKcmyk(48.5%, 54.5%, 0%, 7.8%)
CIE-LABlab(52.48, 38.03, -63.20)
CIE-LCHlch(52.48, 73.76, 301.04°)
OKLaboklab(60.59% 0.0461 -0.1804)
OKLCHoklch(60.59% 0.186 284.3)
XYZxyz(28.1338, 20.5771, 81.0705)
Luminance0.2058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BEB #DDEB6B
analogous
#6B9DEB #796BEB #B96BEB
triadic
#796BEB #EB796B #6BEB79
tetradic
#796BEB #EB6B9D #DDEB6B #6BEBB9
square
#796BEB #EB6B9D #DDEB6B #6BEBB9
split-complementary
#796BEB #EBB96B #9DEB6B
monochromatic
#2C1AC1 #4835E4 #796BEB #AAA1F2 #DBD7FA

Accessibility & contrast

On white

4.11
#796BEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#796BEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BEB
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BEB#FFFFFF#000000##000000
##796BEB1.004.115.125.12
#FFFFFF4.111.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F81EF
Deuteranopia (green-blind)
#1579E8
Tritanopia (blue-blind)
#5088A1
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #796beb;
/* rgb */ color: rgb(121, 107, 235);
/* oklch */ color: oklch(60.6% 0.186 284.3);
Tailwind
colors: {
  custom: {
    50: '#a796f2',
    500: '#796beb',
    950: '#000000',
  },
}
SCSS
$custom: #796beb;
$custom-light: #a796f2;
$custom-dark: #000000;
JSON
{
  "hex": "#796beb",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 235
  },
  "hsl": {
    "h": 246.563,
    "s": 76.19,
    "l": 67.059
  },
  "oklch": {
    "l": 0.60588,
    "c": 0.1862,
    "h": 284.3
  },
  "luminance": 0.20578
}

Semantic roles & 50–950 ramp

primary
#796BEB
secondary
#E9EDC5
accent
#D80DC2
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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