#796DD8#796DD8

#796DD8 is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.7% C 0.158 H 285.7°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#796DD8
RGBrgb(121, 109, 216)
HSLhsl(247, 58%, 64%)
HSVhsv(247, 50%, 85%)
CMYKcmyk(44%, 49.5%, 0%, 15.3%)
CIE-LABlab(51.79, 31.31, -53.61)
CIE-LCHlch(51.79, 62.08, 300.28°)
OKLaboklab(59.7% 0.0427 -0.1522)
OKLCHoklch(59.7% 0.158 285.7)
XYZxyz(25.7449, 19.9590, 67.4484)
Luminance0.1996 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DD8 #CCD86D
analogous
#6D96D8 #796DD8 #AE6DD8
triadic
#796DD8 #D8796D #6DD879
tetradic
#796DD8 #D86D96 #CCD86D #6DD8AE
square
#796DD8 #D86D96 #CCD86D #6DD8AE
split-complementary
#796DD8 #D8AE6D #96D86D
monochromatic
#382BA0 #4D3DCB #796DD8 #A59DE5 #D2CEF2

Accessibility & contrast

On white

4.21
#796DD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#796DD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796DD8
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DD8#FFFFFF#000000##000000
##796DD81.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F7EDC
Deuteranopia (green-blind)
#3C78D6
Tritanopia (blue-blind)
#5B8398
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #796dd8;
/* rgb */ color: rgb(121, 109, 216);
/* oklch */ color: oklch(59.7% 0.158 285.7);
Tailwind
colors: {
  custom: {
    50: '#a597e5',
    500: '#796dd8',
    950: '#000000',
  },
}
SCSS
$custom: #796dd8;
$custom-light: #a597e5;
$custom-dark: #000000;
JSON
{
  "hex": "#796dd8",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 216
  },
  "hsl": {
    "h": 246.729,
    "s": 57.838,
    "l": 63.725
  },
  "oklch": {
    "l": 0.59697,
    "c": 0.15811,
    "h": 285.7
  },
  "luminance": 0.1996
}

Semantic roles & 50–950 ramp

primary
#796DD8
secondary
#DFE3BE
accent
#C520B3
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796DD8

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

Preview Lab → · Contrast checker → · Palette generator →

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