#796FDD#796FDD

#796FDD is a mid, vivid blue. Relative luminance 0.207; OKLCH L 60.4% C 0.162 H 284.6°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#796FDD
RGBrgb(121, 111, 221)
HSLhsl(245, 62%, 65%)
HSVhsv(245, 50%, 87%)
CMYKcmyk(45.2%, 49.8%, 0%, 13.3%)
CIE-LABlab(52.57, 31.57, -55.19)
CIE-LCHlch(52.57, 63.58, 299.77°)
OKLaboklab(60.37% 0.0408 -0.1569)
OKLCHoklch(60.37% 0.162 284.6)
XYZxyz(26.6169, 20.6531, 70.9766)
Luminance0.2065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FDD #D3DD6F
analogous
#6F9CDD #796FDD #B06FDD
triadic
#796FDD #DD796F #6FDD79
tetradic
#796FDD #DD6F9C #D3DD6F #6FDDB0
square
#796FDD #DD6F9C #D3DD6F #6FDDB0
split-complementary
#796FDD #DDB06F #9CDD6F
monochromatic
#3428AA #4B3DD1 #796FDD #A7A1E9 #D5D2F4

Accessibility & contrast

On white

4.09
#796FDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#796FDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FDD
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FDD#FFFFFF#000000##000000
##796FDD1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E81E1
Deuteranopia (green-blind)
#3A7ADB
Tritanopia (blue-blind)
#58869C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #796fdd;
/* rgb */ color: rgb(121, 111, 221);
/* oklch */ color: oklch(60.4% 0.162 284.6);
Tailwind
colors: {
  custom: {
    50: '#a598e8',
    500: '#796fdd',
    950: '#000000',
  },
}
SCSS
$custom: #796fdd;
$custom-light: #a598e8;
$custom-dark: #000000;
JSON
{
  "hex": "#796fdd",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 221
  },
  "hsl": {
    "h": 245.455,
    "s": 61.798,
    "l": 65.098
  },
  "oklch": {
    "l": 0.60374,
    "c": 0.16208,
    "h": 284.6
  },
  "luminance": 0.20654
}

Semantic roles & 50–950 ramp

primary
#796FDD
secondary
#E3E7C1
accent
#CA1CBA
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796FDD

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

Preview Lab → · Contrast checker → · Palette generator →

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