#796FCB#796FCB

#796FCB is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.3% C 0.137 H 286.4°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#796FCB
RGBrgb(121, 111, 203)
HSLhsl(247, 47%, 62%)
HSVhsv(247, 45%, 80%)
CMYKcmyk(40.4%, 45.3%, 0%, 20.4%)
CIE-LABlab(51.55, 26.39, -46.61)
CIE-LCHlch(51.55, 53.56, 299.52°)
OKLaboklab(59.28% 0.0387 -0.1317)
OKLCHoklch(59.28% 0.137 286.4)
XYZxyz(24.3461, 19.7448, 59.0167)
Luminance0.1975 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FCB #C1CB6F
analogous
#6F93CB #796FCB #A76FCB
triadic
#796FCB #CB796F #6FCB79
tetradic
#796FCB #CB6F93 #C1CB6F #6FCBA7
square
#796FCB #CB6F93 #C1CB6F #6FCBA7
split-complementary
#796FCB #CBA76F #93CB6F
monochromatic
#3D338D #5043BA #796FCB #A39CDB #CDC9EB

Accessibility & contrast

On white

4.24
#796FCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#796FCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FCB
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FCB#FFFFFF#000000##000000
##796FCB1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D7DCE
Deuteranopia (green-blind)
#4B78C9
Tritanopia (blue-blind)
#628193
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #796fcb;
/* rgb */ color: rgb(121, 111, 203);
/* oklch */ color: oklch(59.3% 0.137 286.4);
Tailwind
colors: {
  custom: {
    50: '#a398db',
    500: '#796fcb',
    950: '#000000',
  },
}
SCSS
$custom: #796fcb;
$custom-light: #a398db;
$custom-dark: #000000;
JSON
{
  "hex": "#796fcb",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 203
  },
  "hsl": {
    "h": 246.522,
    "s": 46.939,
    "l": 61.569
  },
  "oklch": {
    "l": 0.59276,
    "c": 0.13728,
    "h": 286.4
  },
  "luminance": 0.19746
}

Semantic roles & 50–950 ramp

primary
#796FCB
secondary
#D8DCBA
accent
#BA2BAB
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #796FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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