#796FD8#796FD8

#796FD8 is a mid, vivid blue. Relative luminance 0.204; OKLCH L 60.1% C 0.155 H 285.0°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#796FD8
RGBrgb(121, 111, 216)
HSLhsl(246, 57%, 64%)
HSVhsv(246, 49%, 85%)
CMYKcmyk(44%, 48.6%, 0%, 15.3%)
CIE-LABlab(52.28, 30.12, -52.83)
CIE-LCHlch(52.28, 60.82, 299.69°)
OKLaboklab(60.06% 0.0403 -0.1499)
OKLCHoklch(60.06% 0.155 285)
XYZxyz(25.9607, 20.3906, 67.5203)
Luminance0.2039 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FD8 #CED86F
analogous
#6F9AD8 #796FD8 #AE6FD8
triadic
#796FD8 #D8796F #6FD879
tetradic
#796FD8 #D86F9A #CED86F #6FD8AE
square
#796FD8 #D86F9A #CED86F #6FD8AE
split-complementary
#796FD8 #D8AE6F #9AD86F
monochromatic
#372CA1 #4C3FCB #796FD8 #A69FE5 #D3CFF2

Accessibility & contrast

On white

4.14
#796FD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#796FD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FD8
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FD8#FFFFFF#000000##000000
##796FD81.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4380DC
Deuteranopia (green-blind)
#407AD6
Tritanopia (blue-blind)
#5B8599
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #796fd8;
/* rgb */ color: rgb(121, 111, 216);
/* oklch */ color: oklch(60.1% 0.155 285.0);
Tailwind
colors: {
  custom: {
    50: '#a598e4',
    500: '#796fd8',
    950: '#000000',
  },
}
SCSS
$custom: #796fd8;
$custom-light: #a598e4;
$custom-dark: #000000;
JSON
{
  "hex": "#796fd8",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 216
  },
  "hsl": {
    "h": 245.714,
    "s": 57.377,
    "l": 64.118
  },
  "oklch": {
    "l": 0.60061,
    "c": 0.15526,
    "h": 285
  },
  "luminance": 0.20392
}

Semantic roles & 50–950 ramp

primary
#796FD8
secondary
#E0E4BF
accent
#C521B5
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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