#796BB8#796BB8

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

Color values

HEX#796BB8
RGBrgb(121, 107, 184)
HSLhsl(251, 35%, 57%)
HSVhsv(251, 42%, 72%)
CMYKcmyk(34.2%, 41.8%, 0%, 27.8%)
CIE-LABlab(49.55, 23.50, -38.86)
CIE-LCHlch(49.55, 45.41, 301.17°)
OKLaboklab(57.43% 0.041 -0.1091)
OKLCHoklch(57.43% 0.117 290.6)
XYZxyz(21.7923, 18.0405, 47.6721)
Luminance0.1804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BB8 #AAB86B
analogous
#6B84B8 #796BB8 #A06BB8
triadic
#796BB8 #B8796B #6BB879
tetradic
#796BB8 #B86B84 #AAB86B #6BB8A0
square
#796BB8 #B86B84 #AAB86B #6BB8A0
split-complementary
#796BB8 #B8A06B #84B86B
monochromatic
#413772 #594B9B #796BB8 #9E94CC #C4BEE0

Accessibility & contrast

On white

4.56
#796BB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#796BB8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BB8
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BB8#FFFFFF#000000##000000
##796BB81.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5377BB
Deuteranopia (green-blind)
#5374B6
Tritanopia (blue-blind)
#6A7989
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #796bb8;
/* rgb */ color: rgb(121, 107, 184);
/* oklch */ color: oklch(57.4% 0.117 290.6);
Tailwind
colors: {
  custom: {
    50: '#a295cd',
    500: '#796bb8',
    950: '#000000',
  },
}
SCSS
$custom: #796bb8;
$custom-light: #a295cd;
$custom-dark: #000000;
JSON
{
  "hex": "#796bb8",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 184
  },
  "hsl": {
    "h": 250.909,
    "s": 35.16,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57434,
    "c": 0.11654,
    "h": 290.6
  },
  "luminance": 0.18041
}

Semantic roles & 50–950 ramp

primary
#796BB8
secondary
#C9CFB0
accent
#CB5DB7
background
#FAF9FC
surface
#F4F1F9
border
#CECBD2
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #796BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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