#796DE3#796DE3

#796DE3 is a mid, vivid blue. Relative luminance 0.205; OKLCH L 60.4% C 0.173 H 284.6°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#796DE3
RGBrgb(121, 109, 227)
HSLhsl(246, 68%, 66%)
HSVhsv(246, 52%, 89%)
CMYKcmyk(46.7%, 52%, 0%, 11%)
CIE-LABlab(52.45, 34.51, -58.76)
CIE-LCHlch(52.45, 68.15, 300.43°)
OKLaboklab(60.4% 0.0435 -0.1674)
OKLCHoklch(60.4% 0.173 284.6)
XYZxyz(27.2148, 20.5470, 75.1901)
Luminance0.2055 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DE3 #D7E36D
analogous
#6D9CE3 #796DE3 #B46DE3
triadic
#796DE3 #E3796D #6DE379
tetradic
#796DE3 #E36D9C #D7E36D #6DE3B4
square
#796DE3 #E36D9C #D7E36D #6DE3B4
split-complementary
#796DE3 #E3B46D #9CE36D
monochromatic
#3122B3 #4A3AD9 #796DE3 #A8A0ED #D7D4F7

Accessibility & contrast

On white

4.11
#796DE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#796DE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796DE3
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DE3#FFFFFF#000000##000000
##796DE31.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3381E7
Deuteranopia (green-blind)
#2D79E0
Tritanopia (blue-blind)
#55879E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #796de3;
/* rgb */ color: rgb(121, 109, 227);
/* oklch */ color: oklch(60.4% 0.173 284.6);
Tailwind
colors: {
  custom: {
    50: '#a697ec',
    500: '#796de3',
    950: '#000000',
  },
}
SCSS
$custom: #796de3;
$custom-light: #a697ec;
$custom-dark: #000000;
JSON
{
  "hex": "#796de3",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 227
  },
  "hsl": {
    "h": 246.102,
    "s": 67.816,
    "l": 65.882
  },
  "oklch": {
    "l": 0.60402,
    "c": 0.17292,
    "h": 284.6
  },
  "luminance": 0.20548
}

Semantic roles & 50–950 ramp

primary
#796DE3
secondary
#E5E9C2
accent
#D016BD
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796DE3

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

Preview Lab → · Contrast checker → · Palette generator →

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