#796AEC#796AEC

#796AEC is a mid, vivid blue. Relative luminance 0.204; OKLCH L 60.5% C 0.189 H 284.5°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#796AEC
RGBrgb(121, 106, 236)
HSLhsl(247, 77%, 67%)
HSVhsv(247, 55%, 93%)
CMYKcmyk(48.7%, 55.1%, 0%, 7.5%)
CIE-LABlab(52.32, 38.91, -64.02)
CIE-LCHlch(52.32, 74.92, 301.29°)
OKLaboklab(60.49% 0.0472 -0.1829)
OKLCHoklch(60.49% 0.189 284.5)
XYZxyz(28.1750, 20.4278, 81.7990)
Luminance0.2043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796AEC #DDEC6A
analogous
#6A9CEC #796AEC #BA6AEC
triadic
#796AEC #EC796A #6AEC79
tetradic
#796AEC #EC6A9C #DDEC6A #6AECBA
square
#796AEC #EC6A9C #DDEC6A #6AECBA
split-complementary
#796AEC #ECBA6A #9CEC6A
monochromatic
#2C19C3 #4834E5 #796AEC #AAA0F3 #DBD7FA

Accessibility & contrast

On white

4.13
#796AEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#796AEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796AEC
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796AEC#FFFFFF#000000##000000
##796AEC1.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1881F0
Deuteranopia (green-blind)
#0A79E9
Tritanopia (blue-blind)
#4F87A1
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #796aec;
/* rgb */ color: rgb(121, 106, 236);
/* oklch */ color: oklch(60.5% 0.189 284.5);
Tailwind
colors: {
  custom: {
    50: '#a795f3',
    500: '#796aec',
    950: '#000000',
  },
}
SCSS
$custom: #796aec;
$custom-light: #a795f3;
$custom-dark: #000000;
JSON
{
  "hex": "#796aec",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 236
  },
  "hsl": {
    "h": 246.923,
    "s": 77.381,
    "l": 67.059
  },
  "oklch": {
    "l": 0.60485,
    "c": 0.18884,
    "h": 284.5
  },
  "luminance": 0.20429
}

Semantic roles & 50–950 ramp

primary
#796AEC
secondary
#E9EEC4
accent
#DA0CC2
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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