#796FDB#796FDB

#796FDB is a mid, vivid blue. Relative luminance 0.205; OKLCH L 60.2% C 0.159 H 284.7°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#796FDB
RGBrgb(121, 111, 219)
HSLhsl(246, 60%, 65%)
HSVhsv(246, 49%, 86%)
CMYKcmyk(44.7%, 49.3%, 0%, 14.1%)
CIE-LABlab(52.45, 30.99, -54.25)
CIE-LCHlch(52.45, 62.48, 299.74°)
OKLaboklab(60.25% 0.0406 -0.1541)
OKLCHoklch(60.25% 0.159 284.7)
XYZxyz(26.3521, 20.5472, 69.5816)
Luminance0.2055 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FDB #D1DB6F
analogous
#6F9BDB #796FDB #AF6FDB
triadic
#796FDB #DB796F #6FDB79
tetradic
#796FDB #DB6F9B #D1DB6F #6FDBAF
square
#796FDB #DB6F9B #D1DB6F #6FDBAF
split-complementary
#796FDB #DBAF6F #9BDB6F
monochromatic
#352AA6 #4B3ECF #796FDB #A7A0E7 #D4D1F3

Accessibility & contrast

On white

4.11
#796FDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#796FDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FDB
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FDB#FFFFFF#000000##000000
##796FDB1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4080DF
Deuteranopia (green-blind)
#3C7AD9
Tritanopia (blue-blind)
#5A869B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #796fdb;
/* rgb */ color: rgb(121, 111, 219);
/* oklch */ color: oklch(60.2% 0.159 284.7);
Tailwind
colors: {
  custom: {
    50: '#a598e7',
    500: '#796fdb',
    950: '#000000',
  },
}
SCSS
$custom: #796fdb;
$custom-light: #a598e7;
$custom-dark: #000000;
JSON
{
  "hex": "#796fdb",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 219
  },
  "hsl": {
    "h": 245.556,
    "s": 60,
    "l": 64.706
  },
  "oklch": {
    "l": 0.60248,
    "c": 0.15935,
    "h": 284.7
  },
  "luminance": 0.20548
}

Semantic roles & 50–950 ramp

primary
#796FDB
secondary
#E2E5C0
accent
#C81EB8
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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