#796FBE#796FBE

#796FBE is a mid, moderate blue. Relative luminance 0.192; OKLCH L 58.5% C 0.119 H 288.0°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#796FBE
RGBrgb(121, 111, 190)
HSLhsl(248, 38%, 59%)
HSVhsv(248, 42%, 75%)
CMYKcmyk(36.3%, 41.6%, 0%, 25.5%)
CIE-LABlab(50.86, 22.75, -40.24)
CIE-LCHlch(50.86, 46.22, 299.48°)
OKLaboklab(58.53% 0.0367 -0.1131)
OKLCHoklch(58.53% 0.119 288)
XYZxyz(22.8613, 19.1509, 51.1972)
Luminance0.1915 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FBE #B4BE6F
analogous
#6F8DBE #796FBE #A16FBE
triadic
#796FBE #BE796F #6FBE79
tetradic
#796FBE #BE6F8D #B4BE6F #6FBEA1
square
#796FBE #BE6F8D #B4BE6F #6FBEA1
split-complementary
#796FBE #BEA16F #8DBE6F
monochromatic
#40387B #564BA5 #796FBE #A099D1 #C7C3E4

Accessibility & contrast

On white

4.35
#796FBE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#796FBE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FBE
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FBE#FFFFFF#000000##000000
##796FBE1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#557BC1
Deuteranopia (green-blind)
#5477BC
Tritanopia (blue-blind)
#677E8D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #796fbe;
/* rgb */ color: rgb(121, 111, 190);
/* oklch */ color: oklch(58.5% 0.119 288.0);
Tailwind
colors: {
  custom: {
    50: '#a298d2',
    500: '#796fbe',
    950: '#000000',
  },
}
SCSS
$custom: #796fbe;
$custom-light: #a298d2;
$custom-dark: #000000;
JSON
{
  "hex": "#796fbe",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 190
  },
  "hsl": {
    "h": 247.595,
    "s": 37.799,
    "l": 59.02
  },
  "oklch": {
    "l": 0.58534,
    "c": 0.1189,
    "h": 288
  },
  "luminance": 0.19152
}

Semantic roles & 50–950 ramp

primary
#796FBE
secondary
#D0D4B5
accent
#CE5ABF
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #796FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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