#796ED6#796ED6

#796ED6 is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.8% C 0.154 H 285.6°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#796ED6
RGBrgb(121, 110, 214)
HSLhsl(246, 56%, 64%)
HSVhsv(246, 49%, 84%)
CMYKcmyk(43.5%, 48.6%, 0%, 16.1%)
CIE-LABlab(51.92, 30.14, -52.27)
CIE-LCHlch(51.92, 60.34, 299.96°)
OKLaboklab(59.75% 0.0413 -0.1483)
OKLCHoklch(59.75% 0.154 285.6)
XYZxyz(25.5952, 20.0708, 66.1307)
Luminance0.2007 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796ED6 #CBD66E
analogous
#6E97D6 #796ED6 #AD6ED6
triadic
#796ED6 #D6796E #6ED679
tetradic
#796ED6 #D66E97 #CBD66E #6ED6AD
square
#796ED6 #D66E97 #CBD66E #6ED6AD
split-complementary
#796ED6 #D6AD6E #97D66E
monochromatic
#382C9D #4D3EC9 #796ED6 #A59EE3 #D1CDF1

Accessibility & contrast

On white

4.19
#796ED6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#796ED6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796ED6
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796ED6#FFFFFF#000000##000000
##796ED61.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#437FDA
Deuteranopia (green-blind)
#4079D4
Tritanopia (blue-blind)
#5C8498
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #796ed6;
/* rgb */ color: rgb(121, 110, 214);
/* oklch */ color: oklch(59.8% 0.154 285.6);
Tailwind
colors: {
  custom: {
    50: '#a597e3',
    500: '#796ed6',
    950: '#000000',
  },
}
SCSS
$custom: #796ed6;
$custom-light: #a597e3;
$custom-dark: #000000;
JSON
{
  "hex": "#796ed6",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 214
  },
  "hsl": {
    "h": 246.346,
    "s": 55.914,
    "l": 63.529
  },
  "oklch": {
    "l": 0.59754,
    "c": 0.15395,
    "h": 285.6
  },
  "luminance": 0.20072
}

Semantic roles & 50–950 ramp

primary
#796ED6
secondary
#DEE2BD
accent
#C322B2
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D15
muted
#7F7E84

Preview Lab

Preview with #796ED6

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

Preview Lab → · Contrast checker → · Palette generator →

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