#796EDB#796EDB

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

Color values

HEX#796EDB
RGBrgb(121, 110, 219)
HSLhsl(246, 60%, 65%)
HSVhsv(246, 50%, 86%)
CMYKcmyk(44.7%, 49.8%, 0%, 14.1%)
CIE-LABlab(52.21, 31.58, -54.64)
CIE-LCHlch(52.21, 63.11, 300.03°)
OKLaboklab(60.07% 0.0418 -0.1552)
OKLCHoklch(60.07% 0.161 285.1)
XYZxyz(26.2435, 20.3302, 69.5454)
Luminance0.2033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796EDB #D0DB6E
analogous
#6E9ADB #796EDB #B06EDB
triadic
#796EDB #DB796E #6EDB79
tetradic
#796EDB #DB6E9A #D0DB6E #6EDBB0
square
#796EDB #DB6E9A #D0DB6E #6EDBB0
split-complementary
#796EDB #DBB06E #9ADB6E
monochromatic
#3629A6 #4C3DCF #796EDB #A69FE7 #D4D0F3

Accessibility & contrast

On white

4.15
#796EDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##796EDB#FFFFFF#000000##000000
##796EDB1.004.155.075.07
#FFFFFF4.151.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E80DF
Deuteranopia (green-blind)
#3A79D9
Tritanopia (blue-blind)
#5A859A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #796edb;
/* rgb */ color: rgb(121, 110, 219);
/* oklch */ color: oklch(60.1% 0.161 285.1);
Tailwind
colors: {
  custom: {
    50: '#a597e7',
    500: '#796edb',
    950: '#000000',
  },
}
SCSS
$custom: #796edb;
$custom-light: #a597e7;
$custom-dark: #000000;
JSON
{
  "hex": "#796edb",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 219
  },
  "hsl": {
    "h": 246.055,
    "s": 60.221,
    "l": 64.51
  },
  "oklch": {
    "l": 0.60067,
    "c": 0.16076,
    "h": 285.1
  },
  "luminance": 0.20331
}

Semantic roles & 50–950 ramp

primary
#796EDB
secondary
#E1E5C0
accent
#C81EB7
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796EDB

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

Preview Lab → · Contrast checker → · Palette generator →

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