#796FEF#796FEF

#796FEF is a mid, vivid blue. Relative luminance 0.217; OKLCH L 61.6% C 0.186 H 283.0°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#796FEF
RGBrgb(121, 111, 239)
HSLhsl(245, 80%, 69%)
HSVhsv(245, 54%, 94%)
CMYKcmyk(49.4%, 53.6%, 0%, 6.3%)
CIE-LABlab(53.67, 36.87, -63.52)
CIE-LCHlch(53.67, 73.45, 300.13°)
OKLaboklab(61.55% 0.0418 -0.1813)
OKLCHoklch(61.55% 0.186 283)
XYZxyz(29.1449, 21.6643, 84.2905)
Luminance0.2167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FEF #E5EF6F
analogous
#6FA5EF #796FEF #B96FEF
triadic
#796FEF #EF796F #6FEF79
tetradic
#796FEF #EF6FA5 #E5EF6F #6FEFB9
square
#796FEF #EF6FA5 #E5EF6F #6FEFB9
split-complementary
#796FEF #EFB96F #A5EF6F
monochromatic
#2517CD #4638E9 #796FEF #ACA6F5 #E0DDFB

Accessibility & contrast

On white

3.94
#796FEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#796FEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FEF
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FEF#FFFFFF#000000##000000
##796FEF1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2684F3
Deuteranopia (green-blind)
#1A7CEC
Tritanopia (blue-blind)
#4D8CA4
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #796fef;
/* rgb */ color: rgb(121, 111, 239);
/* oklch */ color: oklch(61.6% 0.186 283.0);
Tailwind
colors: {
  custom: {
    50: '#a798f5',
    500: '#796fef',
    950: '#000000',
  },
}
SCSS
$custom: #796fef;
$custom-light: #a798f5;
$custom-dark: #000000;
JSON
{
  "hex": "#796fef",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 239
  },
  "hsl": {
    "h": 244.688,
    "s": 80,
    "l": 68.627
  },
  "oklch": {
    "l": 0.61551,
    "c": 0.18611,
    "h": 283
  },
  "luminance": 0.21666
}

Semantic roles & 50–950 ramp

primary
#796FEF
secondary
#EDF0CA
accent
#DC09CC
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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