#796BEC#796BEC

#796BEC is a mid, vivid blue. Relative luminance 0.206; OKLCH L 60.7% C 0.188 H 284.2°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#796BEC
RGBrgb(121, 107, 236)
HSLhsl(247, 77%, 67%)
HSVhsv(247, 55%, 93%)
CMYKcmyk(48.7%, 54.7%, 0%, 7.5%)
CIE-LABlab(52.55, 38.33, -63.65)
CIE-LCHlch(52.55, 74.30, 301.05°)
OKLaboklab(60.66% 0.0461 -0.1818)
OKLCHoklch(60.66% 0.188 284.2)
XYZxyz(28.2787, 20.6351, 81.8335)
Luminance0.2064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BEC #DEEC6B
analogous
#6B9DEC #796BEC #BA6BEC
triadic
#796BEC #EC796B #6BEC79
tetradic
#796BEC #EC6B9D #DEEC6B #6BECBA
square
#796BEC #EC6B9D #DEEC6B #6BECBA
split-complementary
#796BEC #ECBA6B #9DEC6B
monochromatic
#2C19C4 #4835E5 #796BEC #AAA1F3 #DBD7FA

Accessibility & contrast

On white

4.10
#796BEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#796BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BEC
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BEC#FFFFFF#000000##000000
##796BEC1.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D81F0
Deuteranopia (green-blind)
#1179E9
Tritanopia (blue-blind)
#4F88A1
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #796bec;
/* rgb */ color: rgb(121, 107, 236);
/* oklch */ color: oklch(60.7% 0.188 284.2);
Tailwind
colors: {
  custom: {
    50: '#a796f3',
    500: '#796bec',
    950: '#000000',
  },
}
SCSS
$custom: #796bec;
$custom-light: #a796f3;
$custom-dark: #000000;
JSON
{
  "hex": "#796bec",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 236
  },
  "hsl": {
    "h": 246.512,
    "s": 77.246,
    "l": 67.255
  },
  "oklch": {
    "l": 0.60656,
    "c": 0.18752,
    "h": 284.2
  },
  "luminance": 0.20636
}

Semantic roles & 50–950 ramp

primary
#796BEC
secondary
#E9EEC5
accent
#D90CC3
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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