#796DC3#796DC3

#796DC3 is a mid, vivid blue. Relative luminance 0.189; OKLCH L 58.4% C 0.129 H 288.1°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#796DC3
RGBrgb(121, 109, 195)
HSLhsl(248, 42%, 60%)
HSVhsv(248, 44%, 76%)
CMYKcmyk(37.9%, 44.1%, 0%, 23.5%)
CIE-LABlab(50.62, 25.33, -43.50)
CIE-LCHlch(50.62, 50.34, 300.22°)
OKLaboklab(58.43% 0.0402 -0.1226)
OKLCHoklch(58.43% 0.129 288.1)
XYZxyz(23.2014, 18.9417, 54.0528)
Luminance0.1894 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DC3 #B7C36D
analogous
#6D8CC3 #796DC3 #A46DC3
triadic
#796DC3 #C3796D #6DC379
tetradic
#796DC3 #C36D8C #B7C36D #6DC3A4
square
#796DC3 #C36D8C #B7C36D #6DC3A4
split-complementary
#796DC3 #C3A46D #8CC36D
monochromatic
#3F3581 #5547AC #796DC3 #A198D5 #C9C4E7

Accessibility & contrast

On white

4.39
#796DC3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#796DC3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796DC3
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DC3#FFFFFF#000000##000000
##796DC31.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F7AC6
Deuteranopia (green-blind)
#4F76C1
Tritanopia (blue-blind)
#657E8E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #796dc3;
/* rgb */ color: rgb(121, 109, 195);
/* oklch */ color: oklch(58.4% 0.129 288.1);
Tailwind
colors: {
  custom: {
    50: '#a397d5',
    500: '#796dc3',
    950: '#000000',
  },
}
SCSS
$custom: #796dc3;
$custom-light: #a397d5;
$custom-dark: #000000;
JSON
{
  "hex": "#796dc3",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 195
  },
  "hsl": {
    "h": 248.372,
    "s": 41.748,
    "l": 59.608
  },
  "oklch": {
    "l": 0.58434,
    "c": 0.12903,
    "h": 288.1
  },
  "luminance": 0.18942
}

Semantic roles & 50–950 ramp

primary
#796DC3
secondary
#D2D7B5
accent
#D256C0
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #796DC3

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

Preview Lab → · Contrast checker → · Palette generator →

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