#796FD9#796FD9

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

Color values

HEX#796FD9
RGBrgb(121, 111, 217)
HSLhsl(246, 58%, 64%)
HSVhsv(246, 49%, 85%)
CMYKcmyk(44.2%, 48.8%, 0%, 14.9%)
CIE-LABlab(52.33, 30.41, -53.31)
CIE-LCHlch(52.33, 61.37, 299.70°)
OKLaboklab(60.12% 0.0404 -0.1513)
OKLCHoklch(60.12% 0.157 284.9)
XYZxyz(26.0903, 20.4425, 68.2033)
Luminance0.2044 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FD9 #CFD96F
analogous
#6F9AD9 #796FD9 #AE6FD9
triadic
#796FD9 #D9796F #6FD979
tetradic
#796FD9 #D96F9A #CFD96F #6FD9AE
square
#796FD9 #D96F9A #CFD96F #6FD9AE
split-complementary
#796FD9 #D9AE6F #9AD96F
monochromatic
#362BA3 #4C3FCC #796FD9 #A69FE6 #D3D0F3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796FD9#FFFFFF#000000##000000
##796FD91.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)
#4280DD
Deuteranopia (green-blind)
#3E7AD7
Tritanopia (blue-blind)
#5B859A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #796fd9;
/* rgb */ color: rgb(121, 111, 217);
/* oklch */ color: oklch(60.1% 0.157 284.9);
Tailwind
colors: {
  custom: {
    50: '#a598e5',
    500: '#796fd9',
    950: '#000000',
  },
}
SCSS
$custom: #796fd9;
$custom-light: #a598e5;
$custom-dark: #000000;
JSON
{
  "hex": "#796fd9",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 217
  },
  "hsl": {
    "h": 245.66,
    "s": 58.242,
    "l": 64.314
  },
  "oklch": {
    "l": 0.60123,
    "c": 0.15663,
    "h": 284.9
  },
  "luminance": 0.20444
}

Semantic roles & 50–950 ramp

primary
#796FD9
secondary
#E1E4C0
accent
#C620B6
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796FD9

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

Preview Lab → · Contrast checker → · Palette generator →

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