#796DC5#796DC5

#796DC5 is a mid, vivid blue. Relative luminance 0.190; OKLCH L 58.5% C 0.132 H 287.9°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#796DC5
RGBrgb(121, 109, 197)
HSLhsl(248, 43%, 60%)
HSVhsv(248, 45%, 77%)
CMYKcmyk(38.6%, 44.7%, 0%, 22.7%)
CIE-LABlab(50.73, 25.89, -44.48)
CIE-LCHlch(50.73, 51.47, 300.21°)
OKLaboklab(58.55% 0.0405 -0.1255)
OKLCHoklch(58.55% 0.132 287.9)
XYZxyz(23.4291, 19.0327, 55.2517)
Luminance0.1903 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DC5 #B9C56D
analogous
#6D8DC5 #796DC5 #A56DC5
triadic
#796DC5 #C5796D #6DC579
tetradic
#796DC5 #C56D8D #B9C56D #6DC5A5
square
#796DC5 #C56D8D #B9C56D #6DC5A5
split-complementary
#796DC5 #C5A56D #8DC56D
monochromatic
#3F3483 #5446AF #796DC5 #A199D6 #C9C5E8

Accessibility & contrast

On white

4.37
#796DC5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#796DC5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796DC5
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DC5#FFFFFF#000000##000000
##796DC51.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E7BC8
Deuteranopia (green-blind)
#4D77C3
Tritanopia (blue-blind)
#647E8F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #796dc5;
/* rgb */ color: rgb(121, 109, 197);
/* oklch */ color: oklch(58.5% 0.132 287.9);
Tailwind
colors: {
  custom: {
    50: '#a397d7',
    500: '#796dc5',
    950: '#000000',
  },
}
SCSS
$custom: #796dc5;
$custom-light: #a397d7;
$custom-dark: #000000;
JSON
{
  "hex": "#796dc5",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 197
  },
  "hsl": {
    "h": 248.182,
    "s": 43.137,
    "l": 60
  },
  "oklch": {
    "l": 0.58549,
    "c": 0.13184,
    "h": 287.9
  },
  "luminance": 0.19033
}

Semantic roles & 50–950 ramp

primary
#796DC5
secondary
#D3D8B6
accent
#D355C2
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #796DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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