#796AE4#796AE4

#796AE4 is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.9% C 0.178 H 285.3°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#796AE4
RGBrgb(121, 106, 228)
HSLhsl(247, 69%, 65%)
HSVhsv(247, 54%, 89%)
CMYKcmyk(46.9%, 53.5%, 0%, 10.6%)
CIE-LABlab(51.81, 36.57, -60.36)
CIE-LCHlch(51.81, 70.57, 301.21°)
OKLaboklab(59.94% 0.047 -0.1721)
OKLCHoklch(59.94% 0.178 285.3)
XYZxyz(27.0387, 19.9732, 75.8143)
Luminance0.1997 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796AE4 #D5E46A
analogous
#6A98E4 #796AE4 #B66AE4
triadic
#796AE4 #E4796A #6AE479
tetradic
#796AE4 #E46A98 #D5E46A #6AE4B6
square
#796AE4 #E46A98 #D5E46A #6AE4B6
split-complementary
#796AE4 #E4B66A #98E46A
monochromatic
#3220B3 #4A36DB #796AE4 #A89EED #D6D2F7

Accessibility & contrast

On white

4.20
#796AE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#796AE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796AE4
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796AE4#FFFFFF#000000##000000
##796AE41.004.204.994.99
#FFFFFF4.201.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#297FE8
Deuteranopia (green-blind)
#2478E1
Tritanopia (blue-blind)
#55859D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #796ae4;
/* rgb */ color: rgb(121, 106, 228);
/* oklch */ color: oklch(59.9% 0.178 285.3);
Tailwind
colors: {
  custom: {
    50: '#a695ed',
    500: '#796ae4',
    950: '#000000',
  },
}
SCSS
$custom: #796ae4;
$custom-light: #a695ed;
$custom-dark: #000000;
JSON
{
  "hex": "#796ae4",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 228
  },
  "hsl": {
    "h": 247.377,
    "s": 69.318,
    "l": 65.49
  },
  "oklch": {
    "l": 0.59943,
    "c": 0.17837,
    "h": 285.3
  },
  "luminance": 0.19974
}

Semantic roles & 50–950 ramp

primary
#796AE4
secondary
#E4E9C0
accent
#D114BA
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796AE4

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

Preview Lab → · Contrast checker → · Palette generator →

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