#796DD9#796DD9

#796DD9 is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.8% C 0.159 H 285.6°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#796DD9
RGBrgb(121, 109, 217)
HSLhsl(247, 59%, 64%)
HSVhsv(247, 50%, 85%)
CMYKcmyk(44.2%, 49.8%, 0%, 14.9%)
CIE-LABlab(51.85, 31.60, -54.08)
CIE-LCHlch(51.85, 62.64, 300.30°)
OKLaboklab(59.76% 0.0428 -0.1536)
OKLCHoklch(59.76% 0.159 285.6)
XYZxyz(25.8746, 20.0109, 68.1313)
Luminance0.2001 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DD9 #CDD96D
analogous
#6D97D9 #796DD9 #AF6DD9
triadic
#796DD9 #D9796D #6DD979
tetradic
#796DD9 #D96D97 #CDD96D #6DD9AF
square
#796DD9 #D96D97 #CDD96D #6DD9AF
split-complementary
#796DD9 #D9AF6D #97D96D
monochromatic
#372AA2 #4C3CCC #796DD9 #A69EE6 #D2CEF2

Accessibility & contrast

On white

4.20
#796DD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#796DD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796DD9
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DD9#FFFFFF#000000##000000
##796DD91.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E7FDD
Deuteranopia (green-blind)
#3B78D7
Tritanopia (blue-blind)
#5B8499
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #796dd9;
/* rgb */ color: rgb(121, 109, 217);
/* oklch */ color: oklch(59.8% 0.159 285.6);
Tailwind
colors: {
  custom: {
    50: '#a597e5',
    500: '#796dd9',
    950: '#000000',
  },
}
SCSS
$custom: #796dd9;
$custom-light: #a597e5;
$custom-dark: #000000;
JSON
{
  "hex": "#796dd9",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 217
  },
  "hsl": {
    "h": 246.667,
    "s": 58.696,
    "l": 63.922
  },
  "oklch": {
    "l": 0.5976,
    "c": 0.15947,
    "h": 285.6
  },
  "luminance": 0.20012
}

Semantic roles & 50–950 ramp

primary
#796DD9
secondary
#E0E4BE
accent
#C61FB4
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796DD9

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

Preview Lab → · Contrast checker → · Palette generator →

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