#796CBF#796CBF

#796CBF is a mid, vivid blue. Relative luminance 0.186; OKLCH L 58.0% C 0.125 H 289.1°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#796CBF
RGBrgb(121, 108, 191)
HSLhsl(249, 39%, 59%)
HSVhsv(249, 43%, 75%)
CMYKcmyk(36.6%, 43.5%, 0%, 25.1%)
CIE-LABlab(50.16, 24.82, -41.93)
CIE-LCHlch(50.16, 48.73, 300.63°)
OKLaboklab(58.02% 0.0409 -0.118)
OKLCHoklch(58.02% 0.125 289.1)
XYZxyz(22.6492, 18.5510, 51.6675)
Luminance0.1855 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CBF #B2BF6C
analogous
#6C88BF #796CBF #A26CBF
triadic
#796CBF #BF796C #6CBF79
tetradic
#796CBF #BF6C88 #B2BF6C #6CBFA2
square
#796CBF #BF6C88 #B2BF6C #6CBFA2
split-complementary
#796CBF #BFA26C #88BF6C
monochromatic
#40367B #5748A6 #796CBF #A097D2 #C7C1E4

Accessibility & contrast

On white

4.46
#796CBF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#796CBF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CBF
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CBF#FFFFFF#000000##000000
##796CBF1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5079C2
Deuteranopia (green-blind)
#5075BD
Tritanopia (blue-blind)
#677C8C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #796cbf;
/* rgb */ color: rgb(121, 108, 191);
/* oklch */ color: oklch(58.0% 0.125 289.1);
Tailwind
colors: {
  custom: {
    50: '#a296d3',
    500: '#796cbf',
    950: '#000000',
  },
}
SCSS
$custom: #796cbf;
$custom-light: #a296d3;
$custom-dark: #000000;
JSON
{
  "hex": "#796cbf",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 191
  },
  "hsl": {
    "h": 249.398,
    "s": 39.336,
    "l": 58.627
  },
  "oklch": {
    "l": 0.58016,
    "c": 0.12491,
    "h": 289.1
  },
  "luminance": 0.18552
}

Semantic roles & 50–950 ramp

primary
#796CBF
secondary
#CFD4B3
accent
#CF59BD
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #796CBF

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

Preview Lab → · Contrast checker → · Palette generator →

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