#796FD4#796FD4

#796FD4 is a mid, vivid blue. Relative luminance 0.202; OKLCH L 59.8% C 0.150 H 285.4°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#796FD4
RGBrgb(121, 111, 212)
HSLhsl(246, 54%, 63%)
HSVhsv(246, 48%, 83%)
CMYKcmyk(42.9%, 47.6%, 0%, 16.9%)
CIE-LABlab(52.05, 28.96, -50.93)
CIE-LCHlch(52.05, 58.59, 299.62°)
OKLaboklab(59.82% 0.0399 -0.1444)
OKLCHoklch(59.82% 0.15 285.4)
XYZxyz(25.4498, 20.1863, 64.8300)
Luminance0.2019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FD4 #CAD46F
analogous
#6F97D4 #796FD4 #AB6FD4
triadic
#796FD4 #D4796F #6FD479
tetradic
#796FD4 #D46F97 #CAD46F #6FD4AB
square
#796FD4 #D46F97 #CAD46F #6FD4AB
split-complementary
#796FD4 #D4AB6F #97D46F
monochromatic
#392E9A #4D40C6 #796FD4 #A59EE2 #D1CDF0

Accessibility & contrast

On white

4.17
#796FD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#796FD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FD4
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FD4#FFFFFF#000000##000000
##796FD41.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#467FD8
Deuteranopia (green-blind)
#4379D2
Tritanopia (blue-blind)
#5D8497
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #796fd4;
/* rgb */ color: rgb(121, 111, 212);
/* oklch */ color: oklch(59.8% 0.150 285.4);
Tailwind
colors: {
  custom: {
    50: '#a498e2',
    500: '#796fd4',
    950: '#000000',
  },
}
SCSS
$custom: #796fd4;
$custom-light: #a498e2;
$custom-dark: #000000;
JSON
{
  "hex": "#796fd4",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 212
  },
  "hsl": {
    "h": 245.941,
    "s": 54.011,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59815,
    "c": 0.14977,
    "h": 285.4
  },
  "luminance": 0.20187
}

Semantic roles & 50–950 ramp

primary
#796FD4
secondary
#DEE1BD
accent
#C124B2
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #796FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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