#796DEB#796DEB

#796DEB is a mid, vivid blue. Relative luminance 0.210; OKLCH L 60.9% C 0.184 H 283.8°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#796DEB
RGBrgb(121, 109, 235)
HSLhsl(246, 76%, 67%)
HSVhsv(246, 54%, 92%)
CMYKcmyk(48.5%, 53.6%, 0%, 7.8%)
CIE-LABlab(52.95, 36.86, -62.45)
CIE-LCHlch(52.95, 72.52, 300.55°)
OKLaboklab(60.93% 0.0439 -0.1782)
OKLCHoklch(60.93% 0.184 283.8)
XYZxyz(28.3447, 20.9990, 81.1408)
Luminance0.2100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DEB #DFEB6D
analogous
#6DA0EB #796DEB #B86DEB
triadic
#796DEB #EB796D #6DEB79
tetradic
#796DEB #EB6DA0 #DFEB6D #6DEBB8
square
#796DEB #EB6DA0 #DFEB6D #6DEBB8
split-complementary
#796DEB #EBB86D #A0EB6D
monochromatic
#2B1BC3 #4837E4 #796DEB #AAA3F2 #DCD9FA

Accessibility & contrast

On white

4.04
#796DEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#796DEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796DEB
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DEB#FFFFFF#000000##000000
##796DEB1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2782EF
Deuteranopia (green-blind)
#1D7AE8
Tritanopia (blue-blind)
#5089A2
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #796deb;
/* rgb */ color: rgb(121, 109, 235);
/* oklch */ color: oklch(60.9% 0.184 283.8);
Tailwind
colors: {
  custom: {
    50: '#a797f2',
    500: '#796deb',
    950: '#000000',
  },
}
SCSS
$custom: #796deb;
$custom-light: #a797f2;
$custom-dark: #000000;
JSON
{
  "hex": "#796deb",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 235
  },
  "hsl": {
    "h": 245.714,
    "s": 75.904,
    "l": 67.451
  },
  "oklch": {
    "l": 0.60933,
    "c": 0.18352,
    "h": 283.8
  },
  "luminance": 0.21
}

Semantic roles & 50–950 ramp

primary
#796DEB
secondary
#EAEEC6
accent
#D80DC5
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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