#796AEA#796AEA

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

Color values

HEX#796AEA
RGBrgb(121, 106, 234)
HSLhsl(247, 75%, 67%)
HSVhsv(247, 55%, 92%)
CMYKcmyk(48.3%, 54.7%, 0%, 8.2%)
CIE-LABlab(52.19, 38.33, -63.11)
CIE-LCHlch(52.19, 73.84, 301.27°)
OKLaboklab(60.35% 0.0472 -0.1802)
OKLCHoklch(60.35% 0.186 284.7)
XYZxyz(27.8861, 20.3122, 80.2772)
Luminance0.2031 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796AEA #DBEA6A
analogous
#6A9BEA #796AEA #B96AEA
triadic
#796AEA #EA796A #6AEA79
tetradic
#796AEA #EA6A9B #DBEA6A #6AEAB9
square
#796AEA #EA6A9B #DBEA6A #6AEAB9
split-complementary
#796AEA #EAB96A #9BEA6A
monochromatic
#2E1BBF #4934E2 #796AEA #A9A0F2 #D9D5F9

Accessibility & contrast

On white

4.15
#796AEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#796AEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796AEA
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796AEA#FFFFFF#000000##000000
##796AEA1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D80EE
Deuteranopia (green-blind)
#1378E7
Tritanopia (blue-blind)
#5187A0
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #796aea;
/* rgb */ color: rgb(121, 106, 234);
/* oklch */ color: oklch(60.3% 0.186 284.7);
Tailwind
colors: {
  custom: {
    50: '#a795f1',
    500: '#796aea',
    950: '#000000',
  },
}
SCSS
$custom: #796aea;
$custom-light: #a795f1;
$custom-dark: #000000;
JSON
{
  "hex": "#796aea",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 234
  },
  "hsl": {
    "h": 247.031,
    "s": 75.294,
    "l": 66.667
  },
  "oklch": {
    "l": 0.60348,
    "c": 0.18624,
    "h": 284.7
  },
  "luminance": 0.20314
}

Semantic roles & 50–950 ramp

primary
#796AEA
secondary
#E8EDC3
accent
#D70EC0
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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