#796BF1#796BF1

#796BF1 is a mid, vivid blue. Relative luminance 0.209; OKLCH L 61.0% C 0.194 H 283.8°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#796BF1
RGBrgb(121, 107, 241)
HSLhsl(246, 83%, 68%)
HSVhsv(246, 56%, 95%)
CMYKcmyk(49.8%, 55.6%, 0%, 5.5%)
CIE-LABlab(52.87, 39.80, -65.92)
CIE-LCHlch(52.87, 77.01, 301.12°)
OKLaboklab(61% 0.0462 -0.1884)
OKLCHoklch(61% 0.194 283.8)
XYZxyz(29.0153, 20.9297, 85.7130)
Luminance0.2093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BF1 #E3F16B
analogous
#6BA0F1 #796BF1 #BC6BF1
triadic
#796BF1 #F1796B #6BF179
tetradic
#796BF1 #F16BA0 #E3F16B #6BF1BC
square
#796BF1 #F16BA0 #E3F16B #6BF1BC
split-complementary
#796BF1 #F1BC6B #A0F16B
monochromatic
#2713CE #4633EC #796BF1 #ACA3F6 #DEDBFC

Accessibility & contrast

On white

4.05
#796BF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#796BF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BF1
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BF1#FFFFFF#000000##000000
##796BF11.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0C82F6
Deuteranopia (green-blind)
#007AEE
Tritanopia (blue-blind)
#4C89A4
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #796bf1;
/* rgb */ color: rgb(121, 107, 241);
/* oklch */ color: oklch(61.0% 0.194 283.8);
Tailwind
colors: {
  custom: {
    50: '#a896f6',
    500: '#796bf1',
    950: '#000000',
  },
}
SCSS
$custom: #796bf1;
$custom-light: #a896f6;
$custom-dark: #000000;
JSON
{
  "hex": "#796bf1",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 241
  },
  "hsl": {
    "h": 246.269,
    "s": 82.716,
    "l": 68.235
  },
  "oklch": {
    "l": 0.61,
    "c": 0.19401,
    "h": 283.8
  },
  "luminance": 0.20931
}

Semantic roles & 50–950 ramp

primary
#796BF1
secondary
#ECF0C8
accent
#DF06C8
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796BF1

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

Preview Lab → · Contrast checker → · Palette generator →

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