#796AFB#796AFB

#796AFB is a mid, highly saturated blue. Relative luminance 0.213; OKLCH L 61.5% C 0.208 H 283.1°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#796AFB
RGBrgb(121, 106, 251)
HSLhsl(246, 95%, 70%)
HSVhsv(246, 58%, 98%)
CMYKcmyk(51.8%, 57.8%, 0%, 1.6%)
CIE-LABlab(53.32, 43.34, -70.77)
CIE-LCHlch(53.32, 82.98, 301.48°)
OKLaboklab(61.54% 0.0472 -0.2027)
OKLCHoklch(61.54% 0.208 283.1)
XYZxyz(30.4465, 21.3363, 93.7621)
Luminance0.2134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796AFB #ECFB6A
analogous
#6AA3FB #796AFB #C26AFB
triadic
#796AFB #FB796A #6AFB79
tetradic
#796AFB #FB6AA3 #ECFB6A #6AFBC2
square
#796AFB #FB6AA3 #ECFB6A #6AFBC2
split-complementary
#796AFB #FBC26A #A3FB6A
monochromatic
#1D06E4 #432EF9 #796AFB #AFA6FD #E4E1FE

Accessibility & contrast

On white

3.99
#796AFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#796AFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796AFB
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796AFB#FFFFFF#000000##000000
##796AFB1.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0084FF
Deuteranopia (green-blind)
#007AF8
Tritanopia (blue-blind)
#438CA8
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #796afb;
/* rgb */ color: rgb(121, 106, 251);
/* oklch */ color: oklch(61.5% 0.208 283.1);
Tailwind
colors: {
  custom: {
    50: '#a995fe',
    500: '#796afb',
    950: '#000000',
  },
}
SCSS
$custom: #796afb;
$custom-light: #a995fe;
$custom-dark: #000000;
JSON
{
  "hex": "#796afb",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 251
  },
  "hsl": {
    "h": 246.207,
    "s": 94.771,
    "l": 70
  },
  "oklch": {
    "l": 0.6154,
    "c": 0.2081,
    "h": 283.1
  },
  "luminance": 0.21338
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #796AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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