#796BE4#796BE4

#796BE4 is a mid, vivid blue. Relative luminance 0.202; OKLCH L 60.1% C 0.177 H 285.0°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#796BE4
RGBrgb(121, 107, 228)
HSLhsl(247, 69%, 66%)
HSVhsv(247, 53%, 89%)
CMYKcmyk(46.9%, 53.1%, 0%, 10.6%)
CIE-LABlab(52.04, 35.98, -59.98)
CIE-LCHlch(52.04, 69.95, 300.96°)
OKLaboklab(60.12% 0.0458 -0.171)
OKLCHoklch(60.12% 0.177 285)
XYZxyz(27.1423, 20.1805, 75.8488)
Luminance0.2018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BE4 #D6E46B
analogous
#6B99E4 #796BE4 #B56BE4
triadic
#796BE4 #E4796B #6BE479
tetradic
#796BE4 #E46B99 #D6E46B #6BE4B5
square
#796BE4 #E46B99 #D6E46B #6BE4B5
split-complementary
#796BE4 #E4B56B #99E46B
monochromatic
#3221B4 #4A37DB #796BE4 #A89FED #D7D3F7

Accessibility & contrast

On white

4.17
#796BE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#796BE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BE4
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BE4#FFFFFF#000000##000000
##796BE41.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C80E8
Deuteranopia (green-blind)
#2778E1
Tritanopia (blue-blind)
#55859D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #796be4;
/* rgb */ color: rgb(121, 107, 228);
/* oklch */ color: oklch(60.1% 0.177 285.0);
Tailwind
colors: {
  custom: {
    50: '#a695ed',
    500: '#796be4',
    950: '#000000',
  },
}
SCSS
$custom: #796be4;
$custom-light: #a695ed;
$custom-dark: #000000;
JSON
{
  "hex": "#796be4",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 228
  },
  "hsl": {
    "h": 246.942,
    "s": 69.143,
    "l": 65.686
  },
  "oklch": {
    "l": 0.60117,
    "c": 0.177,
    "h": 285
  },
  "luminance": 0.20182
}

Semantic roles & 50–950 ramp

primary
#796BE4
secondary
#E5EAC1
accent
#D114BB
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796BE4

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

Preview Lab → · Contrast checker → · Palette generator →

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