#796FBF#796FBF

#796FBF is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.6% C 0.120 H 287.8°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#796FBF
RGBrgb(121, 111, 191)
HSLhsl(248, 38%, 59%)
HSVhsv(248, 42%, 75%)
CMYKcmyk(36.6%, 41.9%, 0%, 25.1%)
CIE-LABlab(50.91, 23.02, -40.74)
CIE-LCHlch(50.91, 46.79, 299.47°)
OKLaboklab(58.59% 0.0368 -0.1145)
OKLCHoklch(58.59% 0.12 287.8)
XYZxyz(22.9710, 19.1947, 51.7748)
Luminance0.1920 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FBF #B5BF6F
analogous
#6F8DBF #796FBF #A16FBF
triadic
#796FBF #BF796F #6FBF79
tetradic
#796FBF #BF6F8D #B5BF6F #6FBFA1
square
#796FBF #BF6F8D #B5BF6F #6FBFA1
split-complementary
#796FBF #BFA16F #8DBF6F
monochromatic
#40377C #564AA7 #796FBF #A099D2 #C8C4E5

Accessibility & contrast

On white

4.34
#796FBF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#796FBF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FBF
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FBF#FFFFFF#000000##000000
##796FBF1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#547BC2
Deuteranopia (green-blind)
#5477BD
Tritanopia (blue-blind)
#677E8E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #796fbf;
/* rgb */ color: rgb(121, 111, 191);
/* oklch */ color: oklch(58.6% 0.120 287.8);
Tailwind
colors: {
  custom: {
    50: '#a298d2',
    500: '#796fbf',
    950: '#000000',
  },
}
SCSS
$custom: #796fbf;
$custom-light: #a298d2;
$custom-dark: #000000;
JSON
{
  "hex": "#796fbf",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 191
  },
  "hsl": {
    "h": 247.5,
    "s": 38.462,
    "l": 59.216
  },
  "oklch": {
    "l": 0.5859,
    "c": 0.12033,
    "h": 287.8
  },
  "luminance": 0.19195
}

Semantic roles & 50–950 ramp

primary
#796FBF
secondary
#D1D5B5
accent
#CE59C0
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #796FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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