#796AE9#796AE9

#796AE9 is a mid, vivid blue. Relative luminance 0.203; OKLCH L 60.3% C 0.185 H 284.8°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#796AE9
RGBrgb(121, 106, 233)
HSLhsl(247, 74%, 66%)
HSVhsv(247, 55%, 91%)
CMYKcmyk(48.1%, 54.5%, 0%, 8.6%)
CIE-LABlab(52.12, 38.03, -62.66)
CIE-LCHlch(52.12, 73.30, 301.26°)
OKLaboklab(60.28% 0.0471 -0.1788)
OKLCHoklch(60.28% 0.185 284.8)
XYZxyz(27.7428, 20.2549, 79.5228)
Luminance0.2026 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796AE9 #DAE96A
analogous
#6A9BE9 #796AE9 #B96AE9
triadic
#796AE9 #E9796A #6AE979
tetradic
#796AE9 #E96A9B #DAE96A #6AE9B9
square
#796AE9 #E96A9B #DAE96A #6AE9B9
split-complementary
#796AE9 #E9B96A #9BE96A
monochromatic
#2F1CBD #4935E1 #796AE9 #A99FF1 #D9D5F9

Accessibility & contrast

On white

4.16
#796AE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#796AE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796AE9
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796AE9#FFFFFF#000000##000000
##796AE91.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F80ED
Deuteranopia (green-blind)
#1778E6
Tritanopia (blue-blind)
#51869F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #796ae9;
/* rgb */ color: rgb(121, 106, 233);
/* oklch */ color: oklch(60.3% 0.185 284.8);
Tailwind
colors: {
  custom: {
    50: '#a795f1',
    500: '#796ae9',
    950: '#000000',
  },
}
SCSS
$custom: #796ae9;
$custom-light: #a795f1;
$custom-dark: #000000;
JSON
{
  "hex": "#796ae9",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 233
  },
  "hsl": {
    "h": 247.087,
    "s": 74.269,
    "l": 66.471
  },
  "oklch": {
    "l": 0.6028,
    "c": 0.18494,
    "h": 284.8
  },
  "luminance": 0.20256
}

Semantic roles & 50–950 ramp

primary
#796AE9
secondary
#E7ECC3
accent
#D60FBF
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796AE9

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

Preview Lab → · Contrast checker → · Palette generator →

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