#796FE3#796FE3

#796FE3 is a mid, vivid blue. Relative luminance 0.210; OKLCH L 60.8% C 0.170 H 284.0°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#796FE3
RGBrgb(121, 111, 227)
HSLhsl(245, 67%, 66%)
HSVhsv(245, 51%, 89%)
CMYKcmyk(46.7%, 51.1%, 0%, 11%)
CIE-LABlab(52.93, 33.33, -58.00)
CIE-LCHlch(52.93, 66.89, 299.88°)
OKLaboklab(60.76% 0.0412 -0.1651)
OKLCHoklch(60.76% 0.17 284)
XYZxyz(27.4306, 20.9786, 75.2621)
Luminance0.2098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FE3 #D9E36F
analogous
#6F9FE3 #796FE3 #B36FE3
triadic
#796FE3 #E3796F #6FE379
tetradic
#796FE3 #E36F9F #D9E36F #6FE3B3
square
#796FE3 #E36F9F #D9E36F #6FE3B3
split-complementary
#796FE3 #E3B36F #9FE36F
monochromatic
#3023B5 #493CD9 #796FE3 #A9A2ED #D8D5F7

Accessibility & contrast

On white

4.04
#796FE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#796FE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FE3
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FE3#FFFFFF#000000##000000
##796FE31.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3882E7
Deuteranopia (green-blind)
#327BE0
Tritanopia (blue-blind)
#55889E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #796fe3;
/* rgb */ color: rgb(121, 111, 227);
/* oklch */ color: oklch(60.8% 0.170 284.0);
Tailwind
colors: {
  custom: {
    50: '#a698ec',
    500: '#796fe3',
    950: '#000000',
  },
}
SCSS
$custom: #796fe3;
$custom-light: #a698ec;
$custom-dark: #000000;
JSON
{
  "hex": "#796fe3",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 227
  },
  "hsl": {
    "h": 245.172,
    "s": 67.442,
    "l": 66.275
  },
  "oklch": {
    "l": 0.60758,
    "c": 0.17018,
    "h": 284
  },
  "luminance": 0.2098
}

Semantic roles & 50–950 ramp

primary
#796FE3
secondary
#E7EAC4
accent
#CF16BF
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796FE3

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

Preview Lab → · Contrast checker → · Palette generator →

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