#796FEA#796FEA

#796FEA is a mid, vivid blue. Relative luminance 0.214; OKLCH L 61.2% C 0.180 H 283.4°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#796FEA
RGBrgb(121, 111, 234)
HSLhsl(245, 75%, 68%)
HSVhsv(245, 53%, 92%)
CMYKcmyk(48.3%, 52.6%, 0%, 8.2%)
CIE-LABlab(53.36, 35.39, -61.23)
CIE-LCHlch(53.36, 70.72, 300.02°)
OKLaboklab(61.22% 0.0416 -0.1746)
OKLCHoklch(61.22% 0.18 283.4)
XYZxyz(28.4164, 21.3729, 80.4540)
Luminance0.2137 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FEA #E0EA6F
analogous
#6FA2EA #796FEA #B66FEA
triadic
#796FEA #EA796F #6FEA79
tetradic
#796FEA #EA6FA2 #E0EA6F #6FEAB6
square
#796FEA #EA6FA2 #E0EA6F #6FEAB6
split-complementary
#796FEA #EAB66F #A2EA6F
monochromatic
#2A1CC2 #473AE2 #796FEA #ABA4F2 #DCDAFA

Accessibility & contrast

On white

3.98
#796FEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#796FEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FEA
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FEA#FFFFFF#000000##000000
##796FEA1.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F83EE
Deuteranopia (green-blind)
#267BE7
Tritanopia (blue-blind)
#508AA2
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #796fea;
/* rgb */ color: rgb(121, 111, 234);
/* oklch */ color: oklch(61.2% 0.180 283.4);
Tailwind
colors: {
  custom: {
    50: '#a798f1',
    500: '#796fea',
    950: '#000000',
  },
}
SCSS
$custom: #796fea;
$custom-light: #a798f1;
$custom-dark: #000000;
JSON
{
  "hex": "#796fea",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 234
  },
  "hsl": {
    "h": 244.878,
    "s": 74.545,
    "l": 67.647
  },
  "oklch": {
    "l": 0.61216,
    "c": 0.17951,
    "h": 283.4
  },
  "luminance": 0.21374
}

Semantic roles & 50–950 ramp

primary
#796FEA
secondary
#EAEDC7
accent
#D70FC6
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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