#796ECF#796ECF

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

Color values

HEX#796ECF
RGBrgb(121, 110, 207)
HSLhsl(247, 50%, 62%)
HSVhsv(247, 47%, 81%)
CMYKcmyk(41.5%, 46.9%, 0%, 18.8%)
CIE-LABlab(51.52, 28.13, -48.93)
CIE-LCHlch(51.52, 56.44, 299.89°)
OKLaboklab(59.33% 0.0405 -0.1385)
OKLCHoklch(59.33% 0.144 286.3)
XYZxyz(24.7204, 19.7209, 61.5234)
Luminance0.1972 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796ECF #C4CF6E
analogous
#6E94CF #796ECF #AA6ECF
triadic
#796ECF #CF796E #6ECF79
tetradic
#796ECF #CF6E94 #C4CF6E #6ECFAA
square
#796ECF #CF6E94 #C4CF6E #6ECFAA
split-complementary
#796ECF #CFAA6E #94CF6E
monochromatic
#3B3092 #4F40C0 #796ECF #A39CDE #CECAED

Accessibility & contrast

On white

4.25
#796ECF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#796ECF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796ECF
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796ECF#FFFFFF#000000##000000
##796ECF1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#487DD3
Deuteranopia (green-blind)
#4778CD
Tritanopia (blue-blind)
#608294
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #796ecf;
/* rgb */ color: rgb(121, 110, 207);
/* oklch */ color: oklch(59.3% 0.144 286.3);
Tailwind
colors: {
  custom: {
    50: '#a497de',
    500: '#796ecf',
    950: '#000000',
  },
}
SCSS
$custom: #796ecf;
$custom-light: #a497de;
$custom-dark: #000000;
JSON
{
  "hex": "#796ecf",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 207
  },
  "hsl": {
    "h": 246.804,
    "s": 50.259,
    "l": 62.157
  },
  "oklch": {
    "l": 0.59327,
    "c": 0.14431,
    "h": 286.3
  },
  "luminance": 0.19722
}

Semantic roles & 50–950 ramp

primary
#796ECF
secondary
#DADEBB
accent
#BE28AD
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #796ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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