#796BB7#796BB7

#796BB7 is a mid, moderate violet. Relative luminance 0.180; OKLCH L 57.4% C 0.115 H 290.8°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#796BB7
RGBrgb(121, 107, 183)
HSLhsl(251, 35%, 57%)
HSVhsv(251, 42%, 72%)
CMYKcmyk(33.9%, 41.5%, 0%, 28.2%)
CIE-LABlab(49.49, 23.23, -38.36)
CIE-LCHlch(49.49, 44.85, 301.20°)
OKLaboklab(57.38% 0.0408 -0.1076)
OKLCHoklch(57.38% 0.115 290.8)
XYZxyz(21.6879, 17.9987, 47.1220)
Luminance0.1800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BB7 #A9B76B
analogous
#6B83B7 #796BB7 #9F6BB7
triadic
#796BB7 #B7796B #6BB779
tetradic
#796BB7 #B76B83 #A9B76B #6BB79F
square
#796BB7 #B76B83 #A9B76B #6BB79F
split-complementary
#796BB7 #B79F6B #83B76B
monochromatic
#423771 #594B9A #796BB7 #9E94CB #C4BDDF

Accessibility & contrast

On white

4.57
#796BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#796BB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BB7
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BB7#FFFFFF#000000##000000
##796BB71.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5377BA
Deuteranopia (green-blind)
#5474B5
Tritanopia (blue-blind)
#6A7988
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #796bb7;
/* rgb */ color: rgb(121, 107, 183);
/* oklch */ color: oklch(57.4% 0.115 290.8);
Tailwind
colors: {
  custom: {
    50: '#a295cd',
    500: '#796bb7',
    950: '#000000',
  },
}
SCSS
$custom: #796bb7;
$custom-light: #a295cd;
$custom-dark: #000000;
JSON
{
  "hex": "#796bb7",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 183
  },
  "hsl": {
    "h": 251.053,
    "s": 34.545,
    "l": 56.863
  },
  "oklch": {
    "l": 0.57379,
    "c": 0.11511,
    "h": 290.8
  },
  "luminance": 0.17999
}

Semantic roles & 50–950 ramp

primary
#796BB7
secondary
#C9CEAF
accent
#CB5DB6
background
#FAF9FC
surface
#F4F1F9
border
#CECBD2
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #796BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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