#796BE8#796BE8

#796BE8 is a mid, vivid blue. Relative luminance 0.204; OKLCH L 60.4% C 0.182 H 284.6°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#796BE8
RGBrgb(121, 107, 232)
HSLhsl(247, 73%, 66%)
HSVhsv(247, 54%, 91%)
CMYKcmyk(47.8%, 53.9%, 0%, 9%)
CIE-LABlab(52.29, 37.15, -61.82)
CIE-LCHlch(52.29, 72.13, 301.00°)
OKLaboklab(60.38% 0.046 -0.1764)
OKLCHoklch(60.38% 0.182 284.6)
XYZxyz(27.7040, 20.4052, 78.8071)
Luminance0.2041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BE8 #DAE86B
analogous
#6B9CE8 #796BE8 #B86BE8
triadic
#796BE8 #E8796B #6BE879
tetradic
#796BE8 #E86B9C #DAE86B #6BE8B8
square
#796BE8 #E86B9C #DAE86B #6BE8B8
split-complementary
#796BE8 #E8B86B #9CE86B
monochromatic
#2F1DBB #4936E0 #796BE8 #A9A0F0 #D9D5F8

Accessibility & contrast

On white

4.13
#796BE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#796BE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BE8
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BE8#FFFFFF#000000##000000
##796BE81.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2580EC
Deuteranopia (green-blind)
#1E79E5
Tritanopia (blue-blind)
#52879F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #796be8;
/* rgb */ color: rgb(121, 107, 232);
/* oklch */ color: oklch(60.4% 0.182 284.6);
Tailwind
colors: {
  custom: {
    50: '#a795f0',
    500: '#796be8',
    950: '#000000',
  },
}
SCSS
$custom: #796be8;
$custom-light: #a795f0;
$custom-dark: #000000;
JSON
{
  "hex": "#796be8",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 232
  },
  "hsl": {
    "h": 246.72,
    "s": 73.099,
    "l": 66.471
  },
  "oklch": {
    "l": 0.60384,
    "c": 0.18228,
    "h": 284.6
  },
  "luminance": 0.20407
}

Semantic roles & 50–950 ramp

primary
#796BE8
secondary
#E7ECC3
accent
#D510BF
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796BE8

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

Preview Lab → · Contrast checker → · Palette generator →

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