#796FE7#796FE7

#796FE7 is a mid, vivid blue. Relative luminance 0.212; OKLCH L 61.0% C 0.176 H 283.7°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#796FE7
RGBrgb(121, 111, 231)
HSLhsl(245, 71%, 67%)
HSVhsv(245, 52%, 91%)
CMYKcmyk(47.6%, 51.9%, 0%, 9.4%)
CIE-LABlab(53.17, 34.50, -59.85)
CIE-LCHlch(53.17, 69.08, 299.96°)
OKLaboklab(61.02% 0.0415 -0.1705)
OKLCHoklch(61.02% 0.176 283.7)
XYZxyz(27.9891, 21.2020, 78.2034)
Luminance0.2120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FE7 #DDE76F
analogous
#6FA1E7 #796FE7 #B56FE7
triadic
#796FE7 #E7796F #6FE779
tetradic
#796FE7 #E76FA1 #DDE76F #6FE7B5
square
#796FE7 #E76FA1 #DDE76F #6FE7B5
split-complementary
#796FE7 #E7B56F #A1E76F
monochromatic
#2C1FBC #483BDE #796FE7 #AAA3F0 #DBD8F8

Accessibility & contrast

On white

4.01
#796FE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#796FE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FE7
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FE7#FFFFFF#000000##000000
##796FE71.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3383EB
Deuteranopia (green-blind)
#2C7BE4
Tritanopia (blue-blind)
#5289A0
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #796fe7;
/* rgb */ color: rgb(121, 111, 231);
/* oklch */ color: oklch(61.0% 0.176 283.7);
Tailwind
colors: {
  custom: {
    50: '#a698ef',
    500: '#796fe7',
    950: '#000000',
  },
}
SCSS
$custom: #796fe7;
$custom-light: #a698ef;
$custom-dark: #000000;
JSON
{
  "hex": "#796fe7",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 231
  },
  "hsl": {
    "h": 245,
    "s": 71.429,
    "l": 67.059
  },
  "oklch": {
    "l": 0.61019,
    "c": 0.17552,
    "h": 283.7
  },
  "luminance": 0.21203
}

Semantic roles & 50–950 ramp

primary
#796FE7
secondary
#E9ECC6
accent
#D312C3
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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