#796CDB#796CDB

#796CDB is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.7% C 0.164 H 285.7°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#796CDB
RGBrgb(121, 108, 219)
HSLhsl(247, 61%, 64%)
HSVhsv(247, 51%, 86%)
CMYKcmyk(44.7%, 50.7%, 0%, 14.1%)
CIE-LABlab(51.73, 32.77, -55.41)
CIE-LCHlch(51.73, 64.37, 300.60°)
OKLaboklab(59.71% 0.0442 -0.1575)
OKLCHoklch(59.71% 0.164 285.7)
XYZxyz(26.0302, 19.9035, 69.4743)
Luminance0.1991 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CDB #CEDB6C
analogous
#6C97DB #796CDB #B16CDB
triadic
#796CDB #DB796C #6CDB79
tetradic
#796CDB #DB6C97 #CEDB6C #6CDBB1
square
#796CDB #DB6C97 #CEDB6C #6CDBB1
split-complementary
#796CDB #DBB16C #97DB6C
monochromatic
#3728A4 #4C3BCF #796CDB #A69DE7 #D3CEF3

Accessibility & contrast

On white

4.22
#796CDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#796CDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CDB
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CDB#FFFFFF#000000##000000
##796CDB1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A7EDF
Deuteranopia (green-blind)
#3778D9
Tritanopia (blue-blind)
#5A8499
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #796cdb;
/* rgb */ color: rgb(121, 108, 219);
/* oklch */ color: oklch(59.7% 0.164 285.7);
Tailwind
colors: {
  custom: {
    50: '#a596e7',
    500: '#796cdb',
    950: '#000000',
  },
}
SCSS
$custom: #796cdb;
$custom-light: #a596e7;
$custom-dark: #000000;
JSON
{
  "hex": "#796cdb",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 219
  },
  "hsl": {
    "h": 247.027,
    "s": 60.656,
    "l": 64.118
  },
  "oklch": {
    "l": 0.59707,
    "c": 0.16358,
    "h": 285.7
  },
  "luminance": 0.19905
}

Semantic roles & 50–950 ramp

primary
#796CDB
secondary
#E0E5BE
accent
#C81DB4
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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