#796FD2#796FD2

#796FD2 is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.7% C 0.147 H 285.6°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#796FD2
RGBrgb(121, 111, 210)
HSLhsl(246, 52%, 63%)
HSVhsv(246, 47%, 82%)
CMYKcmyk(42.4%, 47.1%, 0%, 17.6%)
CIE-LABlab(51.93, 28.39, -49.98)
CIE-LCHlch(51.93, 57.48, 299.60°)
OKLaboklab(59.69% 0.0396 -0.1416)
OKLCHoklch(59.69% 0.147 285.6)
XYZxyz(25.1991, 20.0860, 63.5095)
Luminance0.2009 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FD2 #C8D26F
analogous
#6F96D2 #796FD2 #AB6FD2
triadic
#796FD2 #D2796F #6FD279
tetradic
#796FD2 #D26F96 #C8D26F #6FD2AB
square
#796FD2 #D26F96 #C8D26F #6FD2AB
split-complementary
#796FD2 #D2AB6F #96D26F
monochromatic
#3A2F97 #4E40C3 #796FD2 #A49EE1 #D0CCEF

Accessibility & contrast

On white

4.19
#796FD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#796FD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FD2
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FD2#FFFFFF#000000##000000
##796FD21.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#487FD6
Deuteranopia (green-blind)
#4579D0
Tritanopia (blue-blind)
#5E8396
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #796fd2;
/* rgb */ color: rgb(121, 111, 210);
/* oklch */ color: oklch(59.7% 0.147 285.6);
Tailwind
colors: {
  custom: {
    50: '#a498e0',
    500: '#796fd2',
    950: '#000000',
  },
}
SCSS
$custom: #796fd2;
$custom-light: #a498e0;
$custom-dark: #000000;
JSON
{
  "hex": "#796fd2",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 210
  },
  "hsl": {
    "h": 246.061,
    "s": 52.381,
    "l": 62.941
  },
  "oklch": {
    "l": 0.59693,
    "c": 0.147,
    "h": 285.6
  },
  "luminance": 0.20087
}

Semantic roles & 50–950 ramp

primary
#796FD2
secondary
#DDE0BD
accent
#C026B0
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #796FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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