#796EF2#796EF2

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

Color values

HEX#796EF2
RGBrgb(121, 110, 242)
HSLhsl(245, 84%, 69%)
HSVhsv(245, 55%, 95%)
CMYKcmyk(50%, 54.5%, 0%, 5.1%)
CIE-LABlab(53.63, 38.35, -65.26)
CIE-LCHlch(53.63, 75.69, 300.44°)
OKLaboklab(61.58% 0.043 -0.1865)
OKLCHoklch(61.58% 0.191 283)
XYZxyz(29.4833, 21.6260, 86.6079)
Luminance0.2163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796EF2 #E7F26E
analogous
#6EA5F2 #796EF2 #BB6EF2
triadic
#796EF2 #F2796E #6EF279
tetradic
#796EF2 #F26EA5 #E7F26E #6EF2BB
square
#796EF2 #F26EA5 #E7F26E #6EF2BB
split-complementary
#796EF2 #F2BB6E #A5F26E
monochromatic
#2313D3 #4536ED #796EF2 #ADA6F7 #E1DEFC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796EF2#FFFFFF#000000##000000
##796EF21.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)
#1C84F7
Deuteranopia (green-blind)
#077CEF
Tritanopia (blue-blind)
#4A8CA5
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #796ef2;
/* rgb */ color: rgb(121, 110, 242);
/* oklch */ color: oklch(61.6% 0.191 283.0);
Tailwind
colors: {
  custom: {
    50: '#a898f7',
    500: '#796ef2',
    950: '#000000',
  },
}
SCSS
$custom: #796ef2;
$custom-light: #a898f7;
$custom-dark: #000000;
JSON
{
  "hex": "#796ef2",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 242
  },
  "hsl": {
    "h": 245,
    "s": 83.544,
    "l": 69.02
  },
  "oklch": {
    "l": 0.61581,
    "c": 0.19137,
    "h": 283
  },
  "luminance": 0.21628
}

Semantic roles & 50–950 ramp

primary
#796EF2
secondary
#EEF1CB
accent
#E006CE
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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