#796FDC#796FDC

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

Color values

HEX#796FDC
RGBrgb(121, 111, 220)
HSLhsl(246, 61%, 65%)
HSVhsv(246, 50%, 86%)
CMYKcmyk(45%, 49.5%, 0%, 13.7%)
CIE-LABlab(52.51, 31.28, -54.72)
CIE-LCHlch(52.51, 63.03, 299.75°)
OKLaboklab(60.31% 0.0407 -0.1555)
OKLCHoklch(60.31% 0.161 284.7)
XYZxyz(26.4841, 20.6000, 70.2770)
Luminance0.2060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FDC #D2DC6F
analogous
#6F9BDC #796FDC #B06FDC
triadic
#796FDC #DC796F #6FDC79
tetradic
#796FDC #DC6F9B #D2DC6F #6FDCB0
square
#796FDC #DC6F9B #D2DC6F #6FDCB0
split-complementary
#796FDC #DCB06F #9BDC6F
monochromatic
#3429A8 #4B3ED0 #796FDC #A7A0E8 #D5D1F4

Accessibility & contrast

On white

4.10
#796FDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#796FDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FDC
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FDC#FFFFFF#000000##000000
##796FDC1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F81E0
Deuteranopia (green-blind)
#3B7ADA
Tritanopia (blue-blind)
#59869B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #796fdc;
/* rgb */ color: rgb(121, 111, 220);
/* oklch */ color: oklch(60.3% 0.161 284.7);
Tailwind
colors: {
  custom: {
    50: '#a598e7',
    500: '#796fdc',
    950: '#000000',
  },
}
SCSS
$custom: #796fdc;
$custom-light: #a598e7;
$custom-dark: #000000;
JSON
{
  "hex": "#796fdc",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 220
  },
  "hsl": {
    "h": 245.505,
    "s": 60.894,
    "l": 64.902
  },
  "oklch": {
    "l": 0.60311,
    "c": 0.16072,
    "h": 284.7
  },
  "luminance": 0.20601
}

Semantic roles & 50–950 ramp

primary
#796FDC
secondary
#E3E6C1
accent
#C91DB9
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796FDC

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

Preview Lab → · Contrast checker → · Palette generator →

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