#796BBF#796BBF

#796BBF is a mid, vivid violet. Relative luminance 0.183; OKLCH L 57.8% C 0.126 H 289.5°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#796BBF
RGBrgb(121, 107, 191)
HSLhsl(250, 40%, 58%)
HSVhsv(250, 44%, 75%)
CMYKcmyk(36.6%, 44%, 0%, 25.1%)
CIE-LABlab(49.91, 25.42, -42.33)
CIE-LCHlch(49.91, 49.38, 300.99°)
OKLaboklab(57.83% 0.0422 -0.1192)
OKLCHoklch(57.83% 0.126 289.5)
XYZxyz(22.5443, 18.3413, 51.6325)
Luminance0.1834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BBF #B1BF6B
analogous
#6B87BF #796BBF #A36BBF
triadic
#796BBF #BF796B #6BBF79
tetradic
#796BBF #BF6B87 #B1BF6B #6BBFA3
square
#796BBF #BF6B87 #B1BF6B #6BBFA3
split-complementary
#796BBF #BFA36B #87BF6B
monochromatic
#41357B #5747A5 #796BBF #A096D1 #C6C0E4

Accessibility & contrast

On white

4.50
#796BBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#796BBF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BBF
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BBF#FFFFFF#000000##000000
##796BBF1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #796bbf;
/* rgb */ color: rgb(121, 107, 191);
/* oklch */ color: oklch(57.8% 0.126 289.5);
Tailwind
colors: {
  custom: {
    50: '#a395d3',
    500: '#796bbf',
    950: '#000000',
  },
}
SCSS
$custom: #796bbf;
$custom-light: #a395d3;
$custom-dark: #000000;
JSON
{
  "hex": "#796bbf",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 191
  },
  "hsl": {
    "h": 250,
    "s": 39.623,
    "l": 58.431
  },
  "oklch": {
    "l": 0.57826,
    "c": 0.12645,
    "h": 289.5
  },
  "luminance": 0.18342
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #796BBF

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

Preview Lab → · Contrast checker → · Palette generator →

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