#796CE3#796CE3

#796CE3 is a mid, vivid blue. Relative luminance 0.203; OKLCH L 60.2% C 0.174 H 284.8°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#796CE3
RGBrgb(121, 108, 227)
HSLhsl(247, 68%, 66%)
HSVhsv(247, 52%, 89%)
CMYKcmyk(46.7%, 52.4%, 0%, 11%)
CIE-LABlab(52.21, 35.10, -59.14)
CIE-LCHlch(52.21, 68.77, 300.69°)
OKLaboklab(60.23% 0.0447 -0.1685)
OKLCHoklch(60.23% 0.174 284.8)
XYZxyz(27.1088, 20.3349, 75.1548)
Luminance0.2034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CE3 #D6E36C
analogous
#6C9AE3 #796CE3 #B56CE3
triadic
#796CE3 #E3796C #6CE379
tetradic
#796CE3 #E36C9A #D6E36C #6CE3B5
square
#796CE3 #E36C9A #D6E36C #6CE3B5
split-complementary
#796CE3 #E3B56C #9AE36C
monochromatic
#3222B3 #4A39D9 #796CE3 #A89FED #D7D3F7

Accessibility & contrast

On white

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

On black

5.07
#796CE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CE3
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CE3#FFFFFF#000000##000000
##796CE31.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3080E7
Deuteranopia (green-blind)
#2B79E0
Tritanopia (blue-blind)
#55869D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #796ce3;
/* rgb */ color: rgb(121, 108, 227);
/* oklch */ color: oklch(60.2% 0.174 284.8);
Tailwind
colors: {
  custom: {
    50: '#a696ec',
    500: '#796ce3',
    950: '#000000',
  },
}
SCSS
$custom: #796ce3;
$custom-light: #a696ec;
$custom-dark: #000000;
JSON
{
  "hex": "#796ce3",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 227
  },
  "hsl": {
    "h": 246.555,
    "s": 68,
    "l": 65.686
  },
  "oklch": {
    "l": 0.60226,
    "c": 0.1743,
    "h": 284.8
  },
  "luminance": 0.20336
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #796CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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