#796BE5#796BE5

#796BE5 is a mid, vivid blue. Relative luminance 0.202; OKLCH L 60.2% C 0.178 H 284.9°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#796BE5
RGBrgb(121, 107, 229)
HSLhsl(247, 70%, 66%)
HSVhsv(247, 53%, 90%)
CMYKcmyk(47.2%, 53.3%, 0%, 10.2%)
CIE-LABlab(52.10, 36.27, -60.44)
CIE-LCHlch(52.10, 70.49, 300.97°)
OKLaboklab(60.18% 0.0459 -0.1723)
OKLCHoklch(60.18% 0.178 284.9)
XYZxyz(27.2815, 20.2362, 76.5820)
Luminance0.2024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BE5 #D7E56B
analogous
#6B9AE5 #796BE5 #B66BE5
triadic
#796BE5 #E5796B #6BE579
tetradic
#796BE5 #E56B9A #D7E56B #6BE5B6
square
#796BE5 #E56B9A #D7E56B #6BE5B6
split-complementary
#796BE5 #E5B66B #9AE56B
monochromatic
#3120B6 #4A37DC #796BE5 #A89FEE #D7D3F7

Accessibility & contrast

On white

4.16
#796BE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#796BE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BE5
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BE5#FFFFFF#000000##000000
##796BE51.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A80E9
Deuteranopia (green-blind)
#2579E2
Tritanopia (blue-blind)
#54869E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #796be5;
/* rgb */ color: rgb(121, 107, 229);
/* oklch */ color: oklch(60.2% 0.178 284.9);
Tailwind
colors: {
  custom: {
    50: '#a695ee',
    500: '#796be5',
    950: '#000000',
  },
}
SCSS
$custom: #796be5;
$custom-light: #a695ee;
$custom-dark: #000000;
JSON
{
  "hex": "#796be5",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 229
  },
  "hsl": {
    "h": 246.885,
    "s": 70.115,
    "l": 65.882
  },
  "oklch": {
    "l": 0.60183,
    "c": 0.17832,
    "h": 284.9
  },
  "luminance": 0.20237
}

Semantic roles & 50–950 ramp

primary
#796BE5
secondary
#E5EAC2
accent
#D213BC
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796BE5

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

Preview Lab → · Contrast checker → · Palette generator →

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