#796DDC#796DDC

#796DDC is a mid, vivid blue. Relative luminance 0.202; OKLCH L 60.0% C 0.164 H 285.3°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#796DDC
RGBrgb(121, 109, 220)
HSLhsl(246, 61%, 65%)
HSVhsv(246, 50%, 86%)
CMYKcmyk(45%, 50.5%, 0%, 13.7%)
CIE-LABlab(52.03, 32.47, -55.49)
CIE-LCHlch(52.03, 64.29, 300.33°)
OKLaboklab(59.95% 0.043 -0.1578)
OKLCHoklch(59.95% 0.164 285.3)
XYZxyz(26.2683, 20.1684, 70.2051)
Luminance0.2017 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DDC #D0DC6D
analogous
#6D99DC #796DDC #B06DDC
triadic
#796DDC #DC796D #6DDC79
tetradic
#796DDC #DC6D99 #D0DC6D #6DDCB0
square
#796DDC #DC6D99 #D0DC6D #6DDCB0
split-complementary
#796DDC #DCB06D #99DC6D
monochromatic
#3628A7 #4C3CD0 #796DDC #A69EE8 #D4D0F4

Accessibility & contrast

On white

4.17
#796DDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#796DDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796DDC
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DDC#FFFFFF#000000##000000
##796DDC1.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B7FE0
Deuteranopia (green-blind)
#3779DA
Tritanopia (blue-blind)
#59859A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #796ddc;
/* rgb */ color: rgb(121, 109, 220);
/* oklch */ color: oklch(60.0% 0.164 285.3);
Tailwind
colors: {
  custom: {
    50: '#a597e7',
    500: '#796ddc',
    950: '#000000',
  },
}
SCSS
$custom: #796ddc;
$custom-light: #a597e7;
$custom-dark: #000000;
JSON
{
  "hex": "#796ddc",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 220
  },
  "hsl": {
    "h": 246.486,
    "s": 61.326,
    "l": 64.51
  },
  "oklch": {
    "l": 0.5995,
    "c": 0.16353,
    "h": 285.3
  },
  "luminance": 0.2017
}

Semantic roles & 50–950 ramp

primary
#796DDC
secondary
#E1E6BF
accent
#C91CB6
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796DDC

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

Preview Lab → · Contrast checker → · Palette generator →

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