#796BE2#796BE2

#796BE2 is a mid, vivid blue. Relative luminance 0.201; OKLCH L 60.0% C 0.174 H 285.2°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#796BE2
RGBrgb(121, 107, 226)
HSLhsl(247, 67%, 65%)
HSVhsv(247, 53%, 89%)
CMYKcmyk(46.5%, 52.7%, 0%, 11.4%)
CIE-LABlab(51.92, 35.40, -59.06)
CIE-LCHlch(51.92, 68.85, 300.94°)
OKLaboklab(59.98% 0.0458 -0.1682)
OKLCHoklch(59.98% 0.174 285.2)
XYZxyz(26.8663, 20.0701, 74.3951)
Luminance0.2007 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BE2 #D4E26B
analogous
#6B98E2 #796BE2 #B56BE2
triadic
#796BE2 #E2796B #6BE279
tetradic
#796BE2 #E26B98 #D4E26B #6BE2B5
square
#796BE2 #E26B98 #D4E26B #6BE2B5
split-complementary
#796BE2 #E2B56B #98E26B
monochromatic
#3323B0 #4B38D8 #796BE2 #A79EEC #D6D1F6

Accessibility & contrast

On white

4.19
#796BE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#796BE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BE2
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BE2#FFFFFF#000000##000000
##796BE21.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F7FE6
Deuteranopia (green-blind)
#2A78DF
Tritanopia (blue-blind)
#56859C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #796be2;
/* rgb */ color: rgb(121, 107, 226);
/* oklch */ color: oklch(60.0% 0.174 285.2);
Tailwind
colors: {
  custom: {
    50: '#a695ec',
    500: '#796be2',
    950: '#000000',
  },
}
SCSS
$custom: #796be2;
$custom-light: #a695ec;
$custom-dark: #000000;
JSON
{
  "hex": "#796be2",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 226
  },
  "hsl": {
    "h": 247.059,
    "s": 67.232,
    "l": 65.294
  },
  "oklch": {
    "l": 0.59984,
    "c": 0.17435,
    "h": 285.2
  },
  "luminance": 0.20071
}

Semantic roles & 50–950 ramp

primary
#796BE2
secondary
#E4E8C0
accent
#CF16B9
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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