#796FD5#796FD5

#796FD5 is a mid, vivid blue. Relative luminance 0.202; OKLCH L 59.9% C 0.151 H 285.3°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#796FD5
RGBrgb(121, 111, 213)
HSLhsl(246, 55%, 64%)
HSVhsv(246, 48%, 84%)
CMYKcmyk(43.2%, 47.9%, 0%, 16.5%)
CIE-LABlab(52.10, 29.25, -51.41)
CIE-LCHlch(52.10, 59.15, 299.64°)
OKLaboklab(59.88% 0.04 -0.1458)
OKLCHoklch(59.88% 0.151 285.3)
XYZxyz(25.5764, 20.2369, 65.4964)
Luminance0.2024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FD5 #CBD56F
analogous
#6F98D5 #796FD5 #AC6FD5
triadic
#796FD5 #D5796F #6FD579
tetradic
#796FD5 #D56F98 #CBD56F #6FD5AC
square
#796FD5 #D56F98 #CBD56F #6FD5AC
split-complementary
#796FD5 #D5AC6F #98D56F
monochromatic
#382E9C #4D40C7 #796FD5 #A59EE3 #D1CEF1

Accessibility & contrast

On white

4.16
#796FD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#796FD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FD5
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FD5#FFFFFF#000000##000000
##796FD51.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#457FD9
Deuteranopia (green-blind)
#4379D3
Tritanopia (blue-blind)
#5D8498
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #796fd5;
/* rgb */ color: rgb(121, 111, 213);
/* oklch */ color: oklch(59.9% 0.151 285.3);
Tailwind
colors: {
  custom: {
    50: '#a498e2',
    500: '#796fd5',
    950: '#000000',
  },
}
SCSS
$custom: #796fd5;
$custom-light: #a498e2;
$custom-dark: #000000;
JSON
{
  "hex": "#796fd5",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 213
  },
  "hsl": {
    "h": 245.882,
    "s": 54.839,
    "l": 63.529
  },
  "oklch": {
    "l": 0.59876,
    "c": 0.15114,
    "h": 285.3
  },
  "luminance": 0.20238
}

Semantic roles & 50–950 ramp

primary
#796FD5
secondary
#DEE2BE
accent
#C223B3
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #796FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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