#796BE7#796BE7

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

Color values

HEX#796BE7
RGBrgb(121, 107, 231)
HSLhsl(247, 72%, 66%)
HSVhsv(247, 54%, 91%)
CMYKcmyk(47.6%, 53.7%, 0%, 9.4%)
CIE-LABlab(52.23, 36.86, -61.36)
CIE-LCHlch(52.23, 71.58, 300.99°)
OKLaboklab(60.32% 0.046 -0.175)
OKLCHoklch(60.32% 0.181 284.7)
XYZxyz(27.5624, 20.3486, 78.0612)
Luminance0.2035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BE7 #D9E76B
analogous
#6B9BE7 #796BE7 #B76BE7
triadic
#796BE7 #E7796B #6BE779
tetradic
#796BE7 #E76B9B #D9E76B #6BE7B7
square
#796BE7 #E76B9B #D9E76B #6BE7B7
split-complementary
#796BE7 #E7B76B #9BE76B
monochromatic
#301EBA #4936DE #796BE7 #A9A0F0 #D8D4F8

Accessibility & contrast

On white

4.14
#796BE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#796BE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BE7
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BE7#FFFFFF#000000##000000
##796BE71.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2780EB
Deuteranopia (green-blind)
#2079E4
Tritanopia (blue-blind)
#53869F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #796be7;
/* rgb */ color: rgb(121, 107, 231);
/* oklch */ color: oklch(60.3% 0.181 284.7);
Tailwind
colors: {
  custom: {
    50: '#a795ef',
    500: '#796be7',
    950: '#000000',
  },
}
SCSS
$custom: #796be7;
$custom-light: #a795ef;
$custom-dark: #000000;
JSON
{
  "hex": "#796be7",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 231
  },
  "hsl": {
    "h": 246.774,
    "s": 72.093,
    "l": 66.275
  },
  "oklch": {
    "l": 0.60317,
    "c": 0.18095,
    "h": 284.7
  },
  "luminance": 0.2035
}

Semantic roles & 50–950 ramp

primary
#796BE7
secondary
#E7EBC3
accent
#D411BE
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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