#796FEC#796FEC

#796FEC is a mid, vivid blue. Relative luminance 0.215; OKLCH L 61.3% C 0.182 H 283.2°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#796FEC
RGBrgb(121, 111, 236)
HSLhsl(245, 77%, 68%)
HSVhsv(245, 53%, 93%)
CMYKcmyk(48.7%, 53%, 0%, 7.5%)
CIE-LABlab(53.48, 35.98, -62.15)
CIE-LCHlch(53.48, 71.81, 300.07°)
OKLaboklab(61.35% 0.0417 -0.1773)
OKLCHoklch(61.35% 0.182 283.2)
XYZxyz(28.7054, 21.4885, 81.9758)
Luminance0.2149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FEC #E2EC6F
analogous
#6FA3EC #796FEC #B76FEC
triadic
#796FEC #EC796F #6FEC79
tetradic
#796FEC #EC6FA3 #E2EC6F #6FECB7
square
#796FEC #EC6FA3 #E2EC6F #6FECB7
split-complementary
#796FEC #ECB76F #A3EC6F
monochromatic
#281AC6 #4739E5 #796FEC #ABA5F3 #DEDBFA

Accessibility & contrast

On white

3.96
#796FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#796FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FEC
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FEC#FFFFFF#000000##000000
##796FEC1.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B84F0
Deuteranopia (green-blind)
#227CE9
Tritanopia (blue-blind)
#4F8BA3
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #796fec;
/* rgb */ color: rgb(121, 111, 236);
/* oklch */ color: oklch(61.3% 0.182 283.2);
Tailwind
colors: {
  custom: {
    50: '#a798f3',
    500: '#796fec',
    950: '#000000',
  },
}
SCSS
$custom: #796fec;
$custom-light: #a798f3;
$custom-dark: #000000;
JSON
{
  "hex": "#796fec",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 236
  },
  "hsl": {
    "h": 244.8,
    "s": 76.687,
    "l": 68.039
  },
  "oklch": {
    "l": 0.61349,
    "c": 0.18216,
    "h": 283.2
  },
  "luminance": 0.2149
}

Semantic roles & 50–950 ramp

primary
#796FEC
secondary
#EBEFC8
accent
#D90DC9
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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