#796BCF#796BCF

#796BCF is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.8% C 0.149 H 287.3°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#796BCF
RGBrgb(121, 107, 207)
HSLhsl(248, 51%, 62%)
HSVhsv(248, 48%, 81%)
CMYKcmyk(41.5%, 48.3%, 0%, 18.8%)
CIE-LABlab(50.79, 29.91, -50.10)
CIE-LCHlch(50.79, 58.35, 300.84°)
OKLaboklab(58.77% 0.0443 -0.1419)
OKLCHoklch(58.77% 0.149 287.3)
XYZxyz(24.4022, 19.0845, 61.4173)
Luminance0.1908 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BCF #C1CF6B
analogous
#6B8FCF #796BCF #AB6BCF
triadic
#796BCF #CF796B #6BCF79
tetradic
#796BCF #CF6B8F #C1CF6B #6BCFAB
square
#796BCF #CF6B8F #C1CF6B #6BCFAB
split-complementary
#796BCF #CFAB6B #8FCF6B
monochromatic
#3D2F91 #503EBF #796BCF #A399DE #CDC7ED

Accessibility & contrast

On white

4.36
#796BCF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#796BCF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BCF
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BCF#FFFFFF#000000##000000
##796BCF1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#437BD3
Deuteranopia (green-blind)
#4276CD
Tritanopia (blue-blind)
#607F93
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #796bcf;
/* rgb */ color: rgb(121, 107, 207);
/* oklch */ color: oklch(58.8% 0.149 287.3);
Tailwind
colors: {
  custom: {
    50: '#a495de',
    500: '#796bcf',
    950: '#000000',
  },
}
SCSS
$custom: #796bcf;
$custom-light: #a495de;
$custom-dark: #000000;
JSON
{
  "hex": "#796bcf",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 207
  },
  "hsl": {
    "h": 248.4,
    "s": 51.02,
    "l": 61.569
  },
  "oklch": {
    "l": 0.58774,
    "c": 0.14869,
    "h": 287.3
  },
  "luminance": 0.19085
}

Semantic roles & 50–950 ramp

primary
#796BCF
secondary
#D8DEB8
accent
#BE27A9
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #796BCF

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

Preview Lab → · Contrast checker → · Palette generator →

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