#796BDD#796BDD

#796BDD is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.7% C 0.168 H 285.7°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#796BDD
RGBrgb(121, 107, 221)
HSLhsl(247, 63%, 64%)
HSVhsv(247, 52%, 87%)
CMYKcmyk(45.2%, 51.6%, 0%, 13.3%)
CIE-LABlab(51.61, 33.94, -56.73)
CIE-LCHlch(51.61, 66.11, 300.89°)
OKLaboklab(59.66% 0.0455 -0.1614)
OKLCHoklch(59.66% 0.168 285.7)
XYZxyz(26.1902, 19.7997, 70.8343)
Luminance0.1980 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BDD #CFDD6B
analogous
#6B96DD #796BDD #B26BDD
triadic
#796BDD #DD796B #6BDD79
tetradic
#796BDD #DD6B96 #CFDD6B #6BDDB2
square
#796BDD #DD6B96 #CFDD6B #6BDDB2
split-complementary
#796BDD #DDB26B #96DD6B
monochromatic
#3626A7 #4C39D2 #796BDD #A69DE8 #D3CFF4

Accessibility & contrast

On white

4.23
#796BDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#796BDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BDD
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BDD#FFFFFF#000000##000000
##796BDD1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#357EE1
Deuteranopia (green-blind)
#3278DA
Tritanopia (blue-blind)
#59839A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #796bdd;
/* rgb */ color: rgb(121, 107, 221);
/* oklch */ color: oklch(59.7% 0.168 285.7);
Tailwind
colors: {
  custom: {
    50: '#a595e8',
    500: '#796bdd',
    950: '#000000',
  },
}
SCSS
$custom: #796bdd;
$custom-light: #a595e8;
$custom-dark: #000000;
JSON
{
  "hex": "#796bdd",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 221
  },
  "hsl": {
    "h": 247.368,
    "s": 62.637,
    "l": 64.314
  },
  "oklch": {
    "l": 0.59657,
    "c": 0.16768,
    "h": 285.7
  },
  "luminance": 0.19801
}

Semantic roles & 50–950 ramp

primary
#796BDD
secondary
#E1E6BE
accent
#CA1BB5
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796BDD

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

Preview Lab → · Contrast checker → · Palette generator →

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