#796BE9#796BE9

#796BE9 is a mid, vivid blue. Relative luminance 0.205; OKLCH L 60.5% C 0.184 H 284.5°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#796BE9
RGBrgb(121, 107, 233)
HSLhsl(247, 74%, 67%)
HSVhsv(247, 54%, 91%)
CMYKcmyk(48.1%, 54.1%, 0%, 8.6%)
CIE-LABlab(52.36, 37.45, -62.28)
CIE-LCHlch(52.36, 72.67, 301.02°)
OKLaboklab(60.45% 0.046 -0.1777)
OKLCHoklch(60.45% 0.184 284.5)
XYZxyz(27.8465, 20.4622, 79.5573)
Luminance0.2046 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BE9 #DBE96B
analogous
#6B9CE9 #796BE9 #B86BE9
triadic
#796BE9 #E9796B #6BE979
tetradic
#796BE9 #E96B9C #DBE96B #6BE9B8
square
#796BE9 #E96B9C #DBE96B #6BE9B8
split-complementary
#796BE9 #E9B86B #9CE96B
monochromatic
#2E1CBD #4936E1 #796BE9 #A9A0F1 #D9D6F9

Accessibility & contrast

On white

4.12
#796BE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#796BE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BE9
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BE9#FFFFFF#000000##000000
##796BE91.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2381ED
Deuteranopia (green-blind)
#1B79E6
Tritanopia (blue-blind)
#5187A0
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #796be9;
/* rgb */ color: rgb(121, 107, 233);
/* oklch */ color: oklch(60.5% 0.184 284.5);
Tailwind
colors: {
  custom: {
    50: '#a795f1',
    500: '#796be9',
    950: '#000000',
  },
}
SCSS
$custom: #796be9;
$custom-light: #a795f1;
$custom-dark: #000000;
JSON
{
  "hex": "#796be9",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 233
  },
  "hsl": {
    "h": 246.667,
    "s": 74.118,
    "l": 66.667
  },
  "oklch": {
    "l": 0.60452,
    "c": 0.18358,
    "h": 284.5
  },
  "luminance": 0.20464
}

Semantic roles & 50–950 ramp

primary
#796BE9
secondary
#E8ECC4
accent
#D60FC0
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796BE9

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

Preview Lab → · Contrast checker → · Palette generator →

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