#796CEB#796CEB

#796CEB is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.8% C 0.185 H 284.1°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#796CEB
RGBrgb(121, 108, 235)
HSLhsl(246, 76%, 67%)
HSVhsv(246, 54%, 92%)
CMYKcmyk(48.5%, 54%, 0%, 7.8%)
CIE-LABlab(52.72, 37.45, -62.82)
CIE-LCHlch(52.72, 73.14, 300.80°)
OKLaboklab(60.76% 0.045 -0.1793)
OKLCHoklch(60.76% 0.185 284.1)
XYZxyz(28.2386, 20.7868, 81.1055)
Luminance0.2079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CEB #DEEB6C
analogous
#6C9EEB #796CEB #B96CEB
triadic
#796CEB #EB796C #6CEB79
tetradic
#796CEB #EB6C9E #DEEB6C #6CEBB9
square
#796CEB #EB6C9E #DEEB6C #6CEBB9
split-complementary
#796CEB #EBB96C #9EEB6C
monochromatic
#2C1AC2 #4836E4 #796CEB #AAA2F2 #DBD8FA

Accessibility & contrast

On white

4.07
#796CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#796CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CEB
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CEB#FFFFFF#000000##000000
##796CEB1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2382EF
Deuteranopia (green-blind)
#197AE8
Tritanopia (blue-blind)
#5088A1
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #796ceb;
/* rgb */ color: rgb(121, 108, 235);
/* oklch */ color: oklch(60.8% 0.185 284.1);
Tailwind
colors: {
  custom: {
    50: '#a796f2',
    500: '#796ceb',
    950: '#000000',
  },
}
SCSS
$custom: #796ceb;
$custom-light: #a796f2;
$custom-dark: #000000;
JSON
{
  "hex": "#796ceb",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 235
  },
  "hsl": {
    "h": 246.142,
    "s": 76.048,
    "l": 67.255
  },
  "oklch": {
    "l": 0.6076,
    "c": 0.18487,
    "h": 284.1
  },
  "luminance": 0.20788
}

Semantic roles & 50–950 ramp

primary
#796CEB
secondary
#E9EDC5
accent
#D80DC3
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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