#796CDC#796CDC

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

Color values

HEX#796CDC
RGBrgb(121, 108, 220)
HSLhsl(247, 62%, 64%)
HSVhsv(247, 51%, 86%)
CMYKcmyk(45%, 50.9%, 0%, 13.7%)
CIE-LABlab(51.79, 33.06, -55.88)
CIE-LCHlch(51.79, 64.93, 300.61°)
OKLaboklab(59.77% 0.0442 -0.1589)
OKLCHoklch(59.77% 0.165 285.6)
XYZxyz(26.1622, 19.9563, 70.1697)
Luminance0.1996 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CDC #CFDC6C
analogous
#6C97DC #796CDC #B16CDC
triadic
#796CDC #DC796C #6CDC79
tetradic
#796CDC #DC6C97 #CFDC6C #6CDCB1
square
#796CDC #DC6C97 #CFDC6C #6CDCB1
split-complementary
#796CDC #DCB16C #97DC6C
monochromatic
#3628A6 #4C3BD0 #796CDC #A69DE8 #D3CFF4

Accessibility & contrast

On white

4.21
#796CDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#796CDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CDC
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CDC#FFFFFF#000000##000000
##796CDC1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#397FE0
Deuteranopia (green-blind)
#3578DA
Tritanopia (blue-blind)
#59849A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #796cdc;
/* rgb */ color: rgb(121, 108, 220);
/* oklch */ color: oklch(59.8% 0.165 285.6);
Tailwind
colors: {
  custom: {
    50: '#a596e7',
    500: '#796cdc',
    950: '#000000',
  },
}
SCSS
$custom: #796cdc;
$custom-light: #a596e7;
$custom-dark: #000000;
JSON
{
  "hex": "#796cdc",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 220
  },
  "hsl": {
    "h": 246.964,
    "s": 61.538,
    "l": 64.314
  },
  "oklch": {
    "l": 0.59771,
    "c": 0.16493,
    "h": 285.6
  },
  "luminance": 0.19957
}

Semantic roles & 50–950 ramp

primary
#796CDC
secondary
#E1E5BE
accent
#C91CB5
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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