#796CDF#796CDF

#796CDF is a mid, vivid blue. Relative luminance 0.201; OKLCH L 60.0% C 0.169 H 285.2°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#796CDF
RGBrgb(121, 108, 223)
HSLhsl(247, 64%, 65%)
HSVhsv(247, 52%, 87%)
CMYKcmyk(45.7%, 51.6%, 0%, 12.5%)
CIE-LABlab(51.97, 33.93, -57.28)
CIE-LCHlch(51.97, 66.58, 300.64°)
OKLaboklab(59.96% 0.0444 -0.163)
OKLCHoklch(59.96% 0.169 285.2)
XYZxyz(26.5631, 20.1166, 72.2810)
Luminance0.2012 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CDF #D2DF6C
analogous
#6C98DF #796CDF #B36CDF
triadic
#796CDF #DF796C #6CDF79
tetradic
#796CDF #DF6C98 #D2DF6C #6CDFB3
square
#796CDF #DF6C98 #D2DF6C #6CDFB3
split-complementary
#796CDF #DFB36C #98DF6C
monochromatic
#3425AB #4B3AD4 #796CDF #A79EEA #D5D1F5

Accessibility & contrast

On white

4.18
#796CDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#796CDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CDF
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CDF#FFFFFF#000000##000000
##796CDF1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#357FE3
Deuteranopia (green-blind)
#3178DC
Tritanopia (blue-blind)
#58859B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #796cdf;
/* rgb */ color: rgb(121, 108, 223);
/* oklch */ color: oklch(60.0% 0.169 285.2);
Tailwind
colors: {
  custom: {
    50: '#a696ea',
    500: '#796cdf',
    950: '#000000',
  },
}
SCSS
$custom: #796cdf;
$custom-light: #a696ea;
$custom-dark: #000000;
JSON
{
  "hex": "#796cdf",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 223
  },
  "hsl": {
    "h": 246.783,
    "s": 64.246,
    "l": 64.902
  },
  "oklch": {
    "l": 0.59964,
    "c": 0.16896,
    "h": 285.2
  },
  "luminance": 0.20118
}

Semantic roles & 50–950 ramp

primary
#796CDF
secondary
#E3E7C0
accent
#CC19B8
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796CDF

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

Preview Lab → · Contrast checker → · Palette generator →

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