#796BD5#796BD5

#796BD5 is a mid, vivid blue. Relative luminance 0.194; OKLCH L 59.1% C 0.157 H 286.6°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#796BD5
RGBrgb(121, 107, 213)
HSLhsl(248, 56%, 63%)
HSVhsv(248, 50%, 84%)
CMYKcmyk(43.2%, 49.8%, 0%, 16.5%)
CIE-LABlab(51.13, 31.63, -52.96)
CIE-LCHlch(51.13, 61.69, 300.85°)
OKLaboklab(59.15% 0.0449 -0.1503)
OKLCHoklch(59.15% 0.157 286.6)
XYZxyz(25.1497, 19.3835, 65.3541)
Luminance0.1938 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BD5 #C7D56B
analogous
#6B92D5 #796BD5 #AE6BD5
triadic
#796BD5 #D5796B #6BD579
tetradic
#796BD5 #D56B92 #C7D56B #6BD5AE
square
#796BD5 #D56B92 #C7D56B #6BD5AE
split-complementary
#796BD5 #D5AE6B #92D56B
monochromatic
#3A2C9A #4E3BC7 #796BD5 #A49BE3 #CFCAF0

Accessibility & contrast

On white

4.31
#796BD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#796BD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BD5
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BD5#FFFFFF#000000##000000
##796BD51.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E7DD9
Deuteranopia (green-blind)
#3C77D3
Tritanopia (blue-blind)
#5D8196
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #796bd5;
/* rgb */ color: rgb(121, 107, 213);
/* oklch */ color: oklch(59.1% 0.157 286.6);
Tailwind
colors: {
  custom: {
    50: '#a595e2',
    500: '#796bd5',
    950: '#000000',
  },
}
SCSS
$custom: #796bd5;
$custom-light: #a595e2;
$custom-dark: #000000;
JSON
{
  "hex": "#796bd5",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 213
  },
  "hsl": {
    "h": 247.925,
    "s": 55.789,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59146,
    "c": 0.15688,
    "h": 286.6
  },
  "luminance": 0.19384
}

Semantic roles & 50–950 ramp

primary
#796BD5
secondary
#DCE1BB
accent
#C322AE
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #796BD5

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

Preview Lab → · Contrast checker → · Palette generator →

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