#796BFE#796BFE

#796BFE is a mid, highly saturated blue. Relative luminance 0.217; OKLCH L 61.9% C 0.211 H 282.6°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#796BFE
RGBrgb(121, 107, 254)
HSLhsl(246, 99%, 71%)
HSVhsv(246, 58%, 100%)
CMYKcmyk(52.4%, 57.9%, 0%, 0.4%)
CIE-LABlab(53.74, 43.65, -71.73)
CIE-LCHlch(53.74, 83.97, 301.32°)
OKLaboklab(61.92% 0.0461 -0.2055)
OKLCHoklch(61.92% 0.211 282.6)
XYZxyz(31.0268, 21.7343, 96.3070)
Luminance0.2174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BFE #F0FE6B
analogous
#6BA6FE #796BFE #C26BFE
triadic
#796BFE #FE796B #6BFE79
tetradic
#796BFE #FE6BA6 #F0FE6B #6BFEC2
square
#796BFE #FE6BA6 #F0FE6B #6BFEC2
split-complementary
#796BFE #FEC26B #A6FE6B
monochromatic
#1802ED #422EFE #796BFE #B0A8FE #E3E1FF

Accessibility & contrast

On white

3.93
#796BFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#796BFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BFE
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BFE#FFFFFF#000000##000000
##796BFE1.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.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: #796bfe;
/* rgb */ color: rgb(121, 107, 254);
/* oklch */ color: oklch(61.9% 0.211 282.6);
Tailwind
colors: {
  custom: {
    50: '#a996ff',
    500: '#796bfe',
    950: '#000000',
  },
}
SCSS
$custom: #796bfe;
$custom-light: #a996ff;
$custom-dark: #000000;
JSON
{
  "hex": "#796bfe",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 254
  },
  "hsl": {
    "h": 245.714,
    "s": 98.658,
    "l": 70.784
  },
  "oklch": {
    "l": 0.61921,
    "c": 0.21064,
    "h": 282.6
  },
  "luminance": 0.21736
}

Semantic roles & 50–950 ramp

primary
#796BFE
secondary
#F2F6CF
accent
#E600D0
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110D18
muted
#807E86

Preview Lab

Preview with #796BFE

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

Preview Lab → · Contrast checker → · Palette generator →

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