#796AE7#796AE7

#796AE7 is a mid, vivid blue. Relative luminance 0.201; OKLCH L 60.1% C 0.182 H 285.0°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#796AE7
RGBrgb(121, 106, 231)
HSLhsl(247, 72%, 66%)
HSVhsv(247, 54%, 91%)
CMYKcmyk(47.6%, 54.1%, 0%, 9.4%)
CIE-LABlab(52.00, 37.45, -61.74)
CIE-LCHlch(52.00, 72.21, 301.24°)
OKLaboklab(60.14% 0.0471 -0.1761)
OKLCHoklch(60.14% 0.182 285)
XYZxyz(27.4587, 20.1412, 78.0266)
Luminance0.2014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796AE7 #D8E76A
analogous
#6A99E7 #796AE7 #B76AE7
triadic
#796AE7 #E7796A #6AE779
tetradic
#796AE7 #E76A99 #D8E76A #6AE7B7
square
#796AE7 #E76A99 #D8E76A #6AE7B7
split-complementary
#796AE7 #E7B76A #99E76A
monochromatic
#301EB9 #4A35DF #796AE7 #A89FEF #D8D3F8

Accessibility & contrast

On white

4.18
#796AE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#796AE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796AE7
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796AE7#FFFFFF#000000##000000
##796AE71.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2380EB
Deuteranopia (green-blind)
#1D78E4
Tritanopia (blue-blind)
#53869E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #796ae7;
/* rgb */ color: rgb(121, 106, 231);
/* oklch */ color: oklch(60.1% 0.182 285.0);
Tailwind
colors: {
  custom: {
    50: '#a795ef',
    500: '#796ae7',
    950: '#000000',
  },
}
SCSS
$custom: #796ae7;
$custom-light: #a795ef;
$custom-dark: #000000;
JSON
{
  "hex": "#796ae7",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 231
  },
  "hsl": {
    "h": 247.2,
    "s": 72.254,
    "l": 66.078
  },
  "oklch": {
    "l": 0.60144,
    "c": 0.18231,
    "h": 285
  },
  "luminance": 0.20143
}

Semantic roles & 50–950 ramp

primary
#796AE7
secondary
#E6EBC2
accent
#D411BD
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796AE7

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

Preview Lab → · Contrast checker → · Palette generator →

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