#796CD5#796CD5

#796CD5 is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.3% C 0.155 H 286.3°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#796CD5
RGBrgb(121, 108, 213)
HSLhsl(247, 56%, 63%)
HSVhsv(247, 49%, 84%)
CMYKcmyk(43.2%, 49.3%, 0%, 16.5%)
CIE-LABlab(51.37, 31.04, -52.58)
CIE-LCHlch(51.37, 61.05, 300.55°)
OKLaboklab(59.33% 0.0437 -0.1492)
OKLCHoklch(59.33% 0.155 286.3)
XYZxyz(25.2545, 19.5932, 65.3891)
Luminance0.1959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CD5 #C8D56C
analogous
#6C93D5 #796CD5 #AE6CD5
triadic
#796CD5 #D5796C #6CD579
tetradic
#796CD5 #D56C93 #C8D56C #6CD5AE
square
#796CD5 #D56C93 #C8D56C #6CD5AE
split-complementary
#796CD5 #D5AE6C #93D56C
monochromatic
#3A2C9A #4E3CC7 #796CD5 #A49CE3 #D0CBF0

Accessibility & contrast

On white

4.27
#796CD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#796CD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CD5
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CD5#FFFFFF#000000##000000
##796CD51.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#407DD9
Deuteranopia (green-blind)
#3E77D3
Tritanopia (blue-blind)
#5D8296
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #796cd5;
/* rgb */ color: rgb(121, 108, 213);
/* oklch */ color: oklch(59.3% 0.155 286.3);
Tailwind
colors: {
  custom: {
    50: '#a596e2',
    500: '#796cd5',
    950: '#000000',
  },
}
SCSS
$custom: #796cd5;
$custom-light: #a596e2;
$custom-dark: #000000;
JSON
{
  "hex": "#796cd5",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 213
  },
  "hsl": {
    "h": 247.429,
    "s": 55.556,
    "l": 62.941
  },
  "oklch": {
    "l": 0.59327,
    "c": 0.15545,
    "h": 286.3
  },
  "luminance": 0.19594
}

Semantic roles & 50–950 ramp

primary
#796CD5
secondary
#DDE1BB
accent
#C322AF
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #796CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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