#796DCA#796DCA

#796DCA is a mid, vivid blue. Relative luminance 0.193; OKLCH L 58.8% C 0.139 H 287.2°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#796DCA
RGBrgb(121, 109, 202)
HSLhsl(248, 47%, 61%)
HSVhsv(248, 46%, 79%)
CMYKcmyk(40.1%, 46%, 0%, 20.8%)
CIE-LABlab(51.00, 27.30, -46.91)
CIE-LCHlch(51.00, 54.28, 300.20°)
OKLaboklab(58.84% 0.0412 -0.1326)
OKLCHoklch(58.84% 0.139 287.2)
XYZxyz(24.0115, 19.2657, 58.3192)
Luminance0.1927 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DCA #BECA6D
analogous
#6D8FCA #796DCA #A76DCA
triadic
#796DCA #CA796D #6DCA79
tetradic
#796DCA #CA6D8F #BECA6D #6DCAA7
square
#796DCA #CA6D8F #BECA6D #6DCAA7
split-complementary
#796DCA #CAA76D #8FCA6D
monochromatic
#3E328A #5243B7 #796DCA #A29ADA #CBC7EB

Accessibility & contrast

On white

4.33
#796DCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#796DCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796DCA
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DCA#FFFFFF#000000##000000
##796DCA1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A7CCD
Deuteranopia (green-blind)
#4977C8
Tritanopia (blue-blind)
#628092
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #796dca;
/* rgb */ color: rgb(121, 109, 202);
/* oklch */ color: oklch(58.8% 0.139 287.2);
Tailwind
colors: {
  custom: {
    50: '#a397da',
    500: '#796dca',
    950: '#000000',
  },
}
SCSS
$custom: #796dca;
$custom-light: #a397da;
$custom-dark: #000000;
JSON
{
  "hex": "#796dca",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 202
  },
  "hsl": {
    "h": 247.742,
    "s": 46.734,
    "l": 60.98
  },
  "oklch": {
    "l": 0.58842,
    "c": 0.13883,
    "h": 287.2
  },
  "luminance": 0.19266
}

Semantic roles & 50–950 ramp

primary
#796DCA
secondary
#D6DBB8
accent
#BA2CA8
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #796DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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