#796FCF#796FCF

#796FCF is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.5% C 0.143 H 286.0°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#796FCF
RGBrgb(121, 111, 207)
HSLhsl(246, 50%, 62%)
HSVhsv(246, 46%, 81%)
CMYKcmyk(41.5%, 46.4%, 0%, 18.8%)
CIE-LABlab(51.77, 27.53, -48.54)
CIE-LCHlch(51.77, 55.80, 299.56°)
OKLaboklab(59.51% 0.0393 -0.1373)
OKLCHoklch(59.51% 0.143 286)
XYZxyz(24.8289, 19.9379, 61.5596)
Luminance0.1994 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FCF #C5CF6F
analogous
#6F95CF #796FCF #A96FCF
triadic
#796FCF #CF796F #6FCF79
tetradic
#796FCF #CF6F95 #C5CF6F #6FCFA9
square
#796FCF #CF6F95 #C5CF6F #6FCFA9
split-complementary
#796FCF #CFA96F #95CF6F
monochromatic
#3B3193 #4E41C0 #796FCF #A49DDE #CECBEE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796FCF#FFFFFF#000000##000000
##796FCF1.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)
#4A7ED3
Deuteranopia (green-blind)
#4879CD
Tritanopia (blue-blind)
#608295
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #796fcf;
/* rgb */ color: rgb(121, 111, 207);
/* oklch */ color: oklch(59.5% 0.143 286.0);
Tailwind
colors: {
  custom: {
    50: '#a498de',
    500: '#796fcf',
    950: '#000000',
  },
}
SCSS
$custom: #796fcf;
$custom-light: #a498de;
$custom-dark: #000000;
JSON
{
  "hex": "#796fcf",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 207
  },
  "hsl": {
    "h": 246.25,
    "s": 50,
    "l": 62.353
  },
  "oklch": {
    "l": 0.59513,
    "c": 0.14285,
    "h": 286
  },
  "luminance": 0.19939
}

Semantic roles & 50–950 ramp

primary
#796FCF
secondary
#DBDEBB
accent
#BD28AE
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #796FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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