#796EBA#796EBA

#796EBA is a mid, moderate blue. Relative luminance 0.188; OKLCH L 58.1% C 0.115 H 289.0°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#796EBA
RGBrgb(121, 110, 186)
HSLhsl(249, 36%, 58%)
HSVhsv(249, 41%, 73%)
CMYKcmyk(34.9%, 40.9%, 0%, 27.1%)
CIE-LABlab(50.41, 22.25, -38.66)
CIE-LCHlch(50.41, 44.60, 299.92°)
OKLaboklab(58.12% 0.0373 -0.1085)
OKLCHoklch(58.12% 0.115 289)
XYZxyz(22.3217, 18.7614, 48.8901)
Luminance0.1876 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796EBA #AFBA6E
analogous
#6E89BA #796EBA #9F6EBA
triadic
#796EBA #BA796E #6EBA79
tetradic
#796EBA #BA6E89 #AFBA6E #6EBA9F
square
#796EBA #BA6E89 #AFBA6E #6EBA9F
split-complementary
#796EBA #BA9F6E #89BA6E
monochromatic
#413876 #584C9F #796EBA #9F97CE #C6C1E1

Accessibility & contrast

On white

4.42
#796EBA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#796EBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796EBA
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796EBA#FFFFFF#000000##000000
##796EBA1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#567ABD
Deuteranopia (green-blind)
#5676B8
Tritanopia (blue-blind)
#697C8B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #796eba;
/* rgb */ color: rgb(121, 110, 186);
/* oklch */ color: oklch(58.1% 0.115 289.0);
Tailwind
colors: {
  custom: {
    50: '#a297cf',
    500: '#796eba',
    950: '#000000',
  },
}
SCSS
$custom: #796eba;
$custom-light: #a297cf;
$custom-dark: #000000;
JSON
{
  "hex": "#796eba",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 186
  },
  "hsl": {
    "h": 248.684,
    "s": 35.514,
    "l": 58.039
  },
  "oklch": {
    "l": 0.58121,
    "c": 0.11471,
    "h": 289
  },
  "luminance": 0.18762
}

Semantic roles & 50–950 ramp

primary
#796EBA
secondary
#CDD1B3
accent
#CC5CBB
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #796EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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