#796BF2#796BF2

#796BF2 is a mid, vivid blue. Relative luminance 0.210; OKLCH L 61.1% C 0.195 H 283.7°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#796BF2
RGBrgb(121, 107, 242)
HSLhsl(246, 84%, 68%)
HSVhsv(246, 56%, 95%)
CMYKcmyk(50%, 55.8%, 0%, 5.1%)
CIE-LABlab(52.94, 40.10, -66.37)
CIE-LCHlch(52.94, 77.55, 301.14°)
OKLaboklab(61.07% 0.0462 -0.1898)
OKLCHoklch(61.07% 0.195 283.7)
XYZxyz(29.1650, 20.9896, 86.5018)
Luminance0.2099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BF2 #E4F26B
analogous
#6BA0F2 #796BF2 #BC6BF2
triadic
#796BF2 #F2796B #6BF279
tetradic
#796BF2 #F26BA0 #E4F26B #6BF2BC
square
#796BF2 #F26BA0 #E4F26B #6BF2BC
split-complementary
#796BF2 #F2BC6B #A0F26B
monochromatic
#2612D0 #4633ED #796BF2 #ACA3F7 #DFDCFC

Accessibility & contrast

On white

4.04
#796BF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#796BF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BF2
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BF2#FFFFFF#000000##000000
##796BF21.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0683F7
Deuteranopia (green-blind)
#007AEF
Tritanopia (blue-blind)
#4B8AA4
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #796bf2;
/* rgb */ color: rgb(121, 107, 242);
/* oklch */ color: oklch(61.1% 0.195 283.7);
Tailwind
colors: {
  custom: {
    50: '#a896f7',
    500: '#796bf2',
    950: '#000000',
  },
}
SCSS
$custom: #796bf2;
$custom-light: #a896f7;
$custom-dark: #000000;
JSON
{
  "hex": "#796bf2",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 242
  },
  "hsl": {
    "h": 246.222,
    "s": 83.851,
    "l": 68.431
  },
  "oklch": {
    "l": 0.6107,
    "c": 0.1953,
    "h": 283.7
  },
  "luminance": 0.20991
}

Semantic roles & 50–950 ramp

primary
#796BF2
secondary
#ECF1C8
accent
#E005CA
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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