#796ED9#796ED9

#796ED9 is a mid, vivid blue. Relative luminance 0.202; OKLCH L 59.9% C 0.158 H 285.3°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#796ED9
RGBrgb(121, 110, 217)
HSLhsl(246, 58%, 64%)
HSVhsv(246, 49%, 85%)
CMYKcmyk(44.2%, 49.3%, 0%, 14.9%)
CIE-LABlab(52.09, 31.00, -53.70)
CIE-LCHlch(52.09, 62.00, 300.00°)
OKLaboklab(59.94% 0.0416 -0.1525)
OKLCHoklch(59.94% 0.158 285.3)
XYZxyz(25.9818, 20.2255, 68.1671)
Luminance0.2023 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796ED9 #CED96E
analogous
#6E99D9 #796ED9 #AF6ED9
triadic
#796ED9 #D9796E #6ED979
tetradic
#796ED9 #D96E99 #CED96E #6ED9AF
square
#796ED9 #D96E99 #CED96E #6ED9AF
split-complementary
#796ED9 #D9AF6E #99D96E
monochromatic
#372AA2 #4C3ECC #796ED9 #A69EE6 #D3CFF2

Accessibility & contrast

On white

4.16
#796ED9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#796ED9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796ED9
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796ED9#FFFFFF#000000##000000
##796ED91.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#407FDD
Deuteranopia (green-blind)
#3D79D7
Tritanopia (blue-blind)
#5B8499
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #796ed9;
/* rgb */ color: rgb(121, 110, 217);
/* oklch */ color: oklch(59.9% 0.158 285.3);
Tailwind
colors: {
  custom: {
    50: '#a597e5',
    500: '#796ed9',
    950: '#000000',
  },
}
SCSS
$custom: #796ed9;
$custom-light: #a597e5;
$custom-dark: #000000;
JSON
{
  "hex": "#796ed9",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 217
  },
  "hsl": {
    "h": 246.168,
    "s": 58.47,
    "l": 64.118
  },
  "oklch": {
    "l": 0.59941,
    "c": 0.15805,
    "h": 285.3
  },
  "luminance": 0.20227
}

Semantic roles & 50–950 ramp

primary
#796ED9
secondary
#E0E4BF
accent
#C61FB5
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796ED9

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

Preview Lab → · Contrast checker → · Palette generator →

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