#796BBD#796BBD

#796BBD is a mid, vivid violet. Relative luminance 0.183; OKLCH L 57.7% C 0.124 H 289.8°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#796BBD
RGBrgb(121, 107, 189)
HSLhsl(250, 38%, 58%)
HSVhsv(250, 43%, 74%)
CMYKcmyk(36%, 43.4%, 0%, 25.9%)
CIE-LABlab(49.80, 24.87, -41.34)
CIE-LCHlch(49.80, 48.25, 301.03°)
OKLaboklab(57.71% 0.0419 -0.1163)
OKLCHoklch(57.71% 0.124 289.8)
XYZxyz(22.3257, 18.2539, 50.4813)
Luminance0.1825 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BBD #AFBD6B
analogous
#6B86BD #796BBD #A26BBD
triadic
#796BBD #BD796B #6BBD79
tetradic
#796BBD #BD6B86 #AFBD6B #6BBDA2
square
#796BBD #BD6B86 #AFBD6B #6BBDA2
split-complementary
#796BBD #BDA26B #86BD6B
monochromatic
#413678 #5848A2 #796BBD #9F95D0 #C6C0E3

Accessibility & contrast

On white

4.52
#796BBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#796BBD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BBD
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BBD#FFFFFF#000000##000000
##796BBD1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5078C0
Deuteranopia (green-blind)
#5075BB
Tritanopia (blue-blind)
#687B8B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #796bbd;
/* rgb */ color: rgb(121, 107, 189);
/* oklch */ color: oklch(57.7% 0.124 289.8);
Tailwind
colors: {
  custom: {
    50: '#a295d1',
    500: '#796bbd',
    950: '#000000',
  },
}
SCSS
$custom: #796bbd;
$custom-light: #a295d1;
$custom-dark: #000000;
JSON
{
  "hex": "#796bbd",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 189
  },
  "hsl": {
    "h": 250.244,
    "s": 38.318,
    "l": 58.039
  },
  "oklch": {
    "l": 0.57713,
    "c": 0.12363,
    "h": 289.8
  },
  "luminance": 0.18254
}

Semantic roles & 50–950 ramp

primary
#796BBD
secondary
#CDD2B2
accent
#CE5ABA
background
#FAF9FC
surface
#F4F1F9
border
#CECBD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #796BBD

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

Preview Lab → · Contrast checker → · Palette generator →

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