#796AF8#796AF8

#796AF8 is a mid, highly saturated blue. Relative luminance 0.211; OKLCH L 61.3% C 0.204 H 283.4°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#796AF8
RGBrgb(121, 106, 248)
HSLhsl(246, 91%, 69%)
HSVhsv(246, 57%, 97%)
CMYKcmyk(51.2%, 57.3%, 0%, 2.7%)
CIE-LABlab(53.11, 42.45, -69.43)
CIE-LCHlch(53.11, 81.38, 301.44°)
OKLaboklab(61.33% 0.0472 -0.1988)
OKLCHoklch(61.33% 0.204 283.4)
XYZxyz(29.9773, 21.1487, 91.2913)
Luminance0.2115 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796AF8 #E9F86A
analogous
#6AA2F8 #796AF8 #C06AF8
triadic
#796AF8 #F8796A #6AF879
tetradic
#796AF8 #F86AA2 #E9F86A #6AF8C0
square
#796AF8 #F86AA2 #E9F86A #6AF8C0
split-complementary
#796AF8 #F8C06A #A2F86A
monochromatic
#210ADD #4430F5 #796AF8 #AEA4FB #E2DFFD

Accessibility & contrast

On white

4.02
#796AF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#796AF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796AF8
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796AF8#FFFFFF#000000##000000
##796AF81.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FD
Deuteranopia (green-blind)
#007AF5
Tritanopia (blue-blind)
#468BA7
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #796af8;
/* rgb */ color: rgb(121, 106, 248);
/* oklch */ color: oklch(61.3% 0.204 283.4);
Tailwind
colors: {
  custom: {
    50: '#a995fb',
    500: '#796af8',
    950: '#000000',
  },
}
SCSS
$custom: #796af8;
$custom-light: #a995fb;
$custom-dark: #000000;
JSON
{
  "hex": "#796af8",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 248
  },
  "hsl": {
    "h": 246.338,
    "s": 91.026,
    "l": 69.412
  },
  "oklch": {
    "l": 0.61325,
    "c": 0.20429,
    "h": 283.4
  },
  "luminance": 0.2115
}

Semantic roles & 50–950 ramp

primary
#796AF8
secondary
#EFF3CA
accent
#E600CD
background
#FBF9FF
surface
#F6F1FF
border
#D0CBD7
text
#110D18
muted
#807E86

Preview Lab

Preview with #796AF8

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

Preview Lab → · Contrast checker → · Palette generator →

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