#796AEB#796AEB

#796AEB is a mid, vivid blue. Relative luminance 0.204; OKLCH L 60.4% C 0.188 H 284.6°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#796AEB
RGBrgb(121, 106, 235)
HSLhsl(247, 76%, 67%)
HSVhsv(247, 55%, 92%)
CMYKcmyk(48.5%, 54.9%, 0%, 7.8%)
CIE-LABlab(52.25, 38.62, -63.57)
CIE-LCHlch(52.25, 74.38, 301.28°)
OKLaboklab(60.42% 0.0472 -0.1815)
OKLCHoklch(60.42% 0.188 284.6)
XYZxyz(28.0301, 20.3698, 81.0360)
Luminance0.2037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796AEB #DCEB6A
analogous
#6A9CEB #796AEB #BA6AEB
triadic
#796AEB #EB796A #6AEB79
tetradic
#796AEB #EB6A9C #DCEB6A #6AEBBA
square
#796AEB #EB6A9C #DCEB6A #6AEBBA
split-complementary
#796AEB #EBBA6A #9CEB6A
monochromatic
#2D1AC1 #4834E4 #796AEB #AAA0F2 #DAD6F9

Accessibility & contrast

On white

4.14
#796AEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#796AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796AEB
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796AEB#FFFFFF#000000##000000
##796AEB1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A80EF
Deuteranopia (green-blind)
#0F79E8
Tritanopia (blue-blind)
#5087A0
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #796aeb;
/* rgb */ color: rgb(121, 106, 235);
/* oklch */ color: oklch(60.4% 0.188 284.6);
Tailwind
colors: {
  custom: {
    50: '#a795f2',
    500: '#796aeb',
    950: '#000000',
  },
}
SCSS
$custom: #796aeb;
$custom-light: #a795f2;
$custom-dark: #000000;
JSON
{
  "hex": "#796aeb",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 235
  },
  "hsl": {
    "h": 246.977,
    "s": 76.331,
    "l": 66.863
  },
  "oklch": {
    "l": 0.60416,
    "c": 0.18754,
    "h": 284.6
  },
  "luminance": 0.20371
}

Semantic roles & 50–950 ramp

primary
#796AEB
secondary
#E8EDC4
accent
#D90DC1
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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