#796DE8#796DE8

#796DE8 is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.7% C 0.180 H 284.1°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#796DE8
RGBrgb(121, 109, 232)
HSLhsl(246, 73%, 67%)
HSVhsv(246, 53%, 91%)
CMYKcmyk(47.8%, 53%, 0%, 9%)
CIE-LABlab(52.76, 35.98, -61.07)
CIE-LCHlch(52.76, 70.88, 300.50°)
OKLaboklab(60.73% 0.0438 -0.1741)
OKLCHoklch(60.73% 0.18 284.1)
XYZxyz(27.9150, 20.8271, 78.8774)
Luminance0.2083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DE8 #DCE86D
analogous
#6D9FE8 #796DE8 #B76DE8
triadic
#796DE8 #E8796D #6DE879
tetradic
#796DE8 #E86D9F #DCE86D #6DE8B7
square
#796DE8 #E86D9F #DCE86D #6DE8B7
split-complementary
#796DE8 #E8B76D #9FE86D
monochromatic
#2D1EBD #4838E0 #796DE8 #AAA2F0 #DAD7F9

Accessibility & contrast

On white

4.07
#796DE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#796DE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796DE8
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DE8#FFFFFF#000000##000000
##796DE81.004.075.175.17
#FFFFFF4.071.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C82EC
Deuteranopia (green-blind)
#247AE5
Tritanopia (blue-blind)
#5288A0
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #796de8;
/* rgb */ color: rgb(121, 109, 232);
/* oklch */ color: oklch(60.7% 0.180 284.1);
Tailwind
colors: {
  custom: {
    50: '#a797f0',
    500: '#796de8',
    950: '#000000',
  },
}
SCSS
$custom: #796de8;
$custom-light: #a797f0;
$custom-dark: #000000;
JSON
{
  "hex": "#796de8",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 232
  },
  "hsl": {
    "h": 245.854,
    "s": 72.781,
    "l": 66.863
  },
  "oklch": {
    "l": 0.60732,
    "c": 0.17956,
    "h": 284.1
  },
  "luminance": 0.20828
}

Semantic roles & 50–950 ramp

primary
#796DE8
secondary
#E8ECC5
accent
#D511C2
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796DE8

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

Preview Lab → · Contrast checker → · Palette generator →

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