#796BE6#796BE6

#796BE6 is a mid, vivid blue. Relative luminance 0.203; OKLCH L 60.3% C 0.180 H 284.8°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#796BE6
RGBrgb(121, 107, 230)
HSLhsl(247, 71%, 66%)
HSVhsv(247, 53%, 90%)
CMYKcmyk(47.4%, 53.5%, 0%, 9.8%)
CIE-LABlab(52.17, 36.57, -60.90)
CIE-LCHlch(52.17, 71.04, 300.98°)
OKLaboklab(60.25% 0.0459 -0.1737)
OKLCHoklch(60.25% 0.18 284.8)
XYZxyz(27.4216, 20.2922, 77.3195)
Luminance0.2029 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BE6 #D8E66B
analogous
#6B9AE6 #796BE6 #B66BE6
triadic
#796BE6 #E6796B #6BE679
tetradic
#796BE6 #E66B9A #D8E66B #6BE6B6
square
#796BE6 #E66B9A #D8E66B #6BE6B6
split-complementary
#796BE6 #E6B66B #9AE66B
monochromatic
#301FB8 #4A37DD #796BE6 #A89FEF #D8D4F8

Accessibility & contrast

On white

4.15
#796BE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#796BE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BE6
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BE6#FFFFFF#000000##000000
##796BE61.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2980EA
Deuteranopia (green-blind)
#2279E3
Tritanopia (blue-blind)
#53869E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #796be6;
/* rgb */ color: rgb(121, 107, 230);
/* oklch */ color: oklch(60.3% 0.180 284.8);
Tailwind
colors: {
  custom: {
    50: '#a695ef',
    500: '#796be6',
    950: '#000000',
  },
}
SCSS
$custom: #796be6;
$custom-light: #a695ef;
$custom-dark: #000000;
JSON
{
  "hex": "#796be6",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 230
  },
  "hsl": {
    "h": 246.829,
    "s": 71.098,
    "l": 66.078
  },
  "oklch": {
    "l": 0.6025,
    "c": 0.17964,
    "h": 284.8
  },
  "luminance": 0.20294
}

Semantic roles & 50–950 ramp

primary
#796BE6
secondary
#E6EBC2
accent
#D312BD
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796BE6

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

Preview Lab → · Contrast checker → · Palette generator →

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