#796BB5#796BB5

#796BB5 is a mid, moderate violet. Relative luminance 0.179; OKLCH L 57.3% C 0.112 H 291.1°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#796BB5
RGBrgb(121, 107, 181)
HSLhsl(251, 33%, 56%)
HSVhsv(251, 41%, 71%)
CMYKcmyk(33.1%, 40.9%, 0%, 29%)
CIE-LABlab(49.39, 22.69, -37.36)
CIE-LCHlch(49.39, 43.71, 301.27°)
OKLaboklab(57.27% 0.0405 -0.1047)
OKLCHoklch(57.27% 0.112 291.1)
XYZxyz(21.4812, 17.9161, 46.0335)
Luminance0.1792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BB5 #A7B56B
analogous
#6B82B5 #796BB5 #9E6BB5
triadic
#796BB5 #B5796B #6BB579
tetradic
#796BB5 #B56B82 #A7B56B #6BB59E
square
#796BB5 #B56B82 #A7B56B #6BB59E
split-complementary
#796BB5 #B59E6B #82B56B
monochromatic
#42376E #5A4C97 #796BB5 #9E94C9 #C3BDDE

Accessibility & contrast

On white

4.58
#796BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#796BB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BB5
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BB5#FFFFFF#000000##000000
##796BB51.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5477B8
Deuteranopia (green-blind)
#5574B3
Tritanopia (blue-blind)
#6B7987
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #796bb5;
/* rgb */ color: rgb(121, 107, 181);
/* oklch */ color: oklch(57.3% 0.112 291.1);
Tailwind
colors: {
  custom: {
    50: '#a295cb',
    500: '#796bb5',
    950: '#000000',
  },
}
SCSS
$custom: #796bb5;
$custom-light: #a295cb;
$custom-dark: #000000;
JSON
{
  "hex": "#796bb5",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 181
  },
  "hsl": {
    "h": 251.351,
    "s": 33.333,
    "l": 56.471
  },
  "oklch": {
    "l": 0.5727,
    "c": 0.11226,
    "h": 291.1
  },
  "luminance": 0.17917
}

Semantic roles & 50–950 ramp

primary
#796BB5
secondary
#C7CDAF
accent
#C95EB5
background
#FAF9FC
surface
#F4F1F8
border
#CECBD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #796BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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