#796BC0#796BC0

#796BC0 is a mid, vivid blue. Relative luminance 0.184; OKLCH L 57.9% C 0.128 H 289.3°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#796BC0
RGBrgb(121, 107, 192)
HSLhsl(250, 40%, 59%)
HSVhsv(250, 44%, 75%)
CMYKcmyk(37%, 44.3%, 0%, 24.7%)
CIE-LABlab(49.96, 25.70, -42.82)
CIE-LCHlch(49.96, 49.94, 300.97°)
OKLaboklab(57.88% 0.0424 -0.1206)
OKLCHoklch(57.88% 0.128 289.3)
XYZxyz(22.6547, 18.3855, 52.2141)
Luminance0.1839 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BC0 #B2C06B
analogous
#6B87C0 #796BC0 #A36BC0
triadic
#796BC0 #C0796B #6BC079
tetradic
#796BC0 #C06B87 #B2C06B #6BC0A3
square
#796BC0 #C06B87 #B2C06B #6BC0A3
split-complementary
#796BC0 #C0A36B #87C06B
monochromatic
#40357C #5747A7 #796BC0 #A096D2 #C7C1E5

Accessibility & contrast

On white

4.49
#796BC0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#796BC0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BC0
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BC0#FFFFFF#000000##000000
##796BC01.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E79C3
Deuteranopia (green-blind)
#4E75BE
Tritanopia (blue-blind)
#677B8C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #796bc0;
/* rgb */ color: rgb(121, 107, 192);
/* oklch */ color: oklch(57.9% 0.128 289.3);
Tailwind
colors: {
  custom: {
    50: '#a395d3',
    500: '#796bc0',
    950: '#000000',
  },
}
SCSS
$custom: #796bc0;
$custom-light: #a395d3;
$custom-dark: #000000;
JSON
{
  "hex": "#796bc0",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 192
  },
  "hsl": {
    "h": 249.882,
    "s": 40.284,
    "l": 58.627
  },
  "oklch": {
    "l": 0.57884,
    "c": 0.12786,
    "h": 289.3
  },
  "luminance": 0.18386
}

Semantic roles & 50–950 ramp

primary
#796BC0
secondary
#CFD4B3
accent
#D058BC
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #796BC0

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

Preview Lab → · Contrast checker → · Palette generator →

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