#796FEB#796FEB

#796FEB is a mid, vivid blue. Relative luminance 0.214; OKLCH L 61.3% C 0.181 H 283.3°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#796FEB
RGBrgb(121, 111, 235)
HSLhsl(245, 76%, 68%)
HSVhsv(245, 53%, 92%)
CMYKcmyk(48.5%, 52.8%, 0%, 7.8%)
CIE-LABlab(53.42, 35.68, -61.69)
CIE-LCHlch(53.42, 71.27, 300.05°)
OKLaboklab(61.28% 0.0417 -0.176)
OKLCHoklch(61.28% 0.181 283.3)
XYZxyz(28.5605, 21.4305, 81.2128)
Luminance0.2143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FEB #E1EB6F
analogous
#6FA3EB #796FEB #B76FEB
triadic
#796FEB #EB796F #6FEB79
tetradic
#796FEB #EB6FA3 #E1EB6F #6FEBB7
square
#796FEB #EB6FA3 #E1EB6F #6FEBB7
split-complementary
#796FEB #EBB76F #A3EB6F
monochromatic
#291BC4 #4739E4 #796FEB #ABA5F2 #DDDAFA

Accessibility & contrast

On white

3.97
#796FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#796FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FEB
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FEB#FFFFFF#000000##000000
##796FEB1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D84EF
Deuteranopia (green-blind)
#247CE8
Tritanopia (blue-blind)
#508AA2
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #796feb;
/* rgb */ color: rgb(121, 111, 235);
/* oklch */ color: oklch(61.3% 0.181 283.3);
Tailwind
colors: {
  custom: {
    50: '#a798f2',
    500: '#796feb',
    950: '#000000',
  },
}
SCSS
$custom: #796feb;
$custom-light: #a798f2;
$custom-dark: #000000;
JSON
{
  "hex": "#796feb",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 235
  },
  "hsl": {
    "h": 244.839,
    "s": 75.61,
    "l": 67.843
  },
  "oklch": {
    "l": 0.61283,
    "c": 0.18084,
    "h": 283.3
  },
  "luminance": 0.21432
}

Semantic roles & 50–950 ramp

primary
#796FEB
secondary
#EBEEC8
accent
#D80EC7
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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