#796FD7#796FD7

#796FD7 is a mid, vivid blue. Relative luminance 0.203; OKLCH L 60.0% C 0.154 H 285.1°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#796FD7
RGBrgb(121, 111, 215)
HSLhsl(246, 57%, 64%)
HSVhsv(246, 48%, 84%)
CMYKcmyk(43.7%, 48.4%, 0%, 15.7%)
CIE-LABlab(52.22, 29.83, -52.36)
CIE-LCHlch(52.22, 60.26, 299.67°)
OKLaboklab(60% 0.0402 -0.1485)
OKLCHoklch(60% 0.154 285.1)
XYZxyz(25.8318, 20.3391, 66.8416)
Luminance0.2034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FD7 #CDD76F
analogous
#6F99D7 #796FD7 #AD6FD7
triadic
#796FD7 #D7796F #6FD779
tetradic
#796FD7 #D76F99 #CDD76F #6FD7AD
square
#796FD7 #D76F99 #CDD76F #6FD7AD
split-complementary
#796FD7 #D7AD6F #99D76F
monochromatic
#372C9F #4C3FCA #796FD7 #A69FE4 #D2CFF2

Accessibility & contrast

On white

4.14
#796FD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#796FD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FD7
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FD7#FFFFFF#000000##000000
##796FD71.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4480DB
Deuteranopia (green-blind)
#4179D5
Tritanopia (blue-blind)
#5C8599
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #796fd7;
/* rgb */ color: rgb(121, 111, 215);
/* oklch */ color: oklch(60.0% 0.154 285.1);
Tailwind
colors: {
  custom: {
    50: '#a598e4',
    500: '#796fd7',
    950: '#000000',
  },
}
SCSS
$custom: #796fd7;
$custom-light: #a598e4;
$custom-dark: #000000;
JSON
{
  "hex": "#796fd7",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 215
  },
  "hsl": {
    "h": 245.769,
    "s": 56.522,
    "l": 63.922
  },
  "oklch": {
    "l": 0.59999,
    "c": 0.15389,
    "h": 285.1
  },
  "luminance": 0.2034
}

Semantic roles & 50–950 ramp

primary
#796FD7
secondary
#E0E3BF
accent
#C421B4
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D15
muted
#7F7E84

Preview Lab

Preview with #796FD7

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

Preview Lab → · Contrast checker → · Palette generator →

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