#796AF1#796AF1

#796AF1 is a mid, vivid blue. Relative luminance 0.207; OKLCH L 60.8% C 0.195 H 284.0°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#796AF1
RGBrgb(121, 106, 241)
HSLhsl(247, 83%, 68%)
HSVhsv(247, 56%, 95%)
CMYKcmyk(49.8%, 56%, 0%, 5.5%)
CIE-LABlab(52.64, 40.38, -66.29)
CIE-LCHlch(52.64, 77.62, 301.35°)
OKLaboklab(60.83% 0.0472 -0.1895)
OKLCHoklch(60.83% 0.195 284)
XYZxyz(28.9116, 20.7224, 85.6784)
Luminance0.2072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796AF1 #E2F16A
analogous
#6A9EF1 #796AF1 #BD6AF1
triadic
#796AF1 #F1796A #6AF179
tetradic
#796AF1 #F16A9E #E2F16A #6AF1BD
square
#796AF1 #F16A9E #E2F16A #6AF1BD
split-complementary
#796AF1 #F1BD6A #9EF16A
monochromatic
#2813CD #4732EC #796AF1 #ABA2F6 #DEDAFC

Accessibility & contrast

On white

4.08
#796AF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#796AF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796AF1
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796AF1#FFFFFF#000000##000000
##796AF11.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0282F6
Deuteranopia (green-blind)
#0079EE
Tritanopia (blue-blind)
#4C89A3
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #796af1;
/* rgb */ color: rgb(121, 106, 241);
/* oklch */ color: oklch(60.8% 0.195 284.0);
Tailwind
colors: {
  custom: {
    50: '#a895f6',
    500: '#796af1',
    950: '#000000',
  },
}
SCSS
$custom: #796af1;
$custom-light: #a895f6;
$custom-dark: #000000;
JSON
{
  "hex": "#796af1",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 241
  },
  "hsl": {
    "h": 246.667,
    "s": 82.822,
    "l": 68.039
  },
  "oklch": {
    "l": 0.60831,
    "c": 0.19532,
    "h": 284
  },
  "luminance": 0.20724
}

Semantic roles & 50–950 ramp

primary
#796AF1
secondary
#EBF0C7
accent
#DF06C7
background
#FAF9FF
surface
#F4F1FF
border
#CECBD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796AF1

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

Preview Lab → · Contrast checker → · Palette generator →

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