#796AEF#796AEF

#796AEF is a mid, vivid blue. Relative luminance 0.206; OKLCH L 60.7% C 0.193 H 284.2°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#796AEF
RGBrgb(121, 106, 239)
HSLhsl(247, 81%, 68%)
HSVhsv(247, 56%, 94%)
CMYKcmyk(49.4%, 55.6%, 0%, 6.3%)
CIE-LABlab(52.51, 39.79, -65.39)
CIE-LCHlch(52.51, 76.54, 301.32°)
OKLaboklab(60.69% 0.0472 -0.1869)
OKLCHoklch(60.69% 0.193 284.2)
XYZxyz(28.6145, 20.6036, 84.1137)
Luminance0.2061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796AEF #E0EF6A
analogous
#6A9DEF #796AEF #BC6AEF
triadic
#796AEF #EF796A #6AEF79
tetradic
#796AEF #EF6A9D #E0EF6A #6AEFBC
square
#796AEF #EF6A9D #E0EF6A #6AEFBC
split-complementary
#796AEF #EFBC6A #9DEF6A
monochromatic
#2A16C9 #4733E9 #796AEF #ABA1F5 #DCD9FB

Accessibility & contrast

On white

4.10
#796AEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#796AEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796AEF
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796AEF#FFFFFF#000000##000000
##796AEF1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0D81F3
Deuteranopia (green-blind)
#0079EC
Tritanopia (blue-blind)
#4D88A2
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #796aef;
/* rgb */ color: rgb(121, 106, 239);
/* oklch */ color: oklch(60.7% 0.193 284.2);
Tailwind
colors: {
  custom: {
    50: '#a895f5',
    500: '#796aef',
    950: '#000000',
  },
}
SCSS
$custom: #796aef;
$custom-light: #a895f5;
$custom-dark: #000000;
JSON
{
  "hex": "#796aef",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 239
  },
  "hsl": {
    "h": 246.767,
    "s": 80.606,
    "l": 67.647
  },
  "oklch": {
    "l": 0.60692,
    "c": 0.19274,
    "h": 284.2
  },
  "luminance": 0.20605
}

Semantic roles & 50–950 ramp

primary
#796AEF
secondary
#EAEFC6
accent
#DD09C5
background
#FAF9FF
surface
#F4F1FE
border
#CECBD6
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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