#796AFE#796AFE

#796AFE is a mid, highly saturated blue. Relative luminance 0.215; OKLCH L 61.8% C 0.212 H 282.8°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#796AFE
RGBrgb(121, 106, 254)
HSLhsl(246, 99%, 71%)
HSVhsv(246, 58%, 100%)
CMYKcmyk(52.4%, 58.3%, 0%, 0.4%)
CIE-LABlab(53.52, 44.23, -72.10)
CIE-LCHlch(53.52, 84.58, 301.53°)
OKLaboklab(61.76% 0.0471 -0.2066)
OKLCHoklch(61.76% 0.212 282.8)
XYZxyz(30.9231, 21.5270, 96.2724)
Luminance0.2153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796AFE #EFFE6A
analogous
#6AA5FE #796AFE #C36AFE
triadic
#796AFE #FE796A #6AFE79
tetradic
#796AFE #FE6AA5 #EFFE6A #6AFEC3
square
#796AFE #FE6AA5 #EFFE6A #6AFEC3
split-complementary
#796AFE #FEC36A #A5FE6A
monochromatic
#1902EC #422DFE #796AFE #B0A7FE #E4E1FF

Accessibility & contrast

On white

3.96
#796AFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#796AFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796AFE
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796AFE#FFFFFF#000000##000000
##796AFE1.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0085FF
Deuteranopia (green-blind)
#007BFB
Tritanopia (blue-blind)
#408DAA
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #796afe;
/* rgb */ color: rgb(121, 106, 254);
/* oklch */ color: oklch(61.8% 0.212 282.8);
Tailwind
colors: {
  custom: {
    50: '#a995ff',
    500: '#796afe',
    950: '#000000',
  },
}
SCSS
$custom: #796afe;
$custom-light: #a995ff;
$custom-dark: #000000;
JSON
{
  "hex": "#796afe",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 254
  },
  "hsl": {
    "h": 246.081,
    "s": 98.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.61757,
    "c": 0.21189,
    "h": 282.8
  },
  "luminance": 0.21529
}

Semantic roles & 50–950 ramp

primary
#796AFE
secondary
#F2F6CE
accent
#E600CE
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110D18
muted
#807E86

Preview Lab

Preview with #796AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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