#796FC8#796FC8

#796FC8 is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.1% C 0.133 H 286.7°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#796FC8
RGBrgb(121, 111, 200)
HSLhsl(247, 45%, 61%)
HSVhsv(247, 45%, 78%)
CMYKcmyk(39.5%, 44.5%, 0%, 21.6%)
CIE-LABlab(51.39, 25.54, -45.15)
CIE-LCHlch(51.39, 51.87, 299.50°)
OKLaboklab(59.1% 0.0383 -0.1274)
OKLCHoklch(59.1% 0.133 286.7)
XYZxyz(23.9920, 19.6031, 57.1521)
Luminance0.1960 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FC8 #BEC86F
analogous
#6F91C8 #796FC8 #A56FC8
triadic
#796FC8 #C8796F #6FC879
tetradic
#796FC8 #C86F91 #BEC86F #6FC8A5
square
#796FC8 #C86F91 #BEC86F #6FC8A5
split-complementary
#796FC8 #C8A56F #91C86F
monochromatic
#3E3488 #5245B5 #796FC8 #A29BD9 #CBC8EA

Accessibility & contrast

On white

4.27
#796FC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#796FC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FC8
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FC8#FFFFFF#000000##000000
##796FC81.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F7DCB
Deuteranopia (green-blind)
#4E78C6
Tritanopia (blue-blind)
#638192
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #796fc8;
/* rgb */ color: rgb(121, 111, 200);
/* oklch */ color: oklch(59.1% 0.133 286.7);
Tailwind
colors: {
  custom: {
    50: '#a398d9',
    500: '#796fc8',
    950: '#000000',
  },
}
SCSS
$custom: #796fc8;
$custom-light: #a398d9;
$custom-dark: #000000;
JSON
{
  "hex": "#796fc8",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 200
  },
  "hsl": {
    "h": 246.742,
    "s": 44.724,
    "l": 60.98
  },
  "oklch": {
    "l": 0.59101,
    "c": 0.13307,
    "h": 286.7
  },
  "luminance": 0.19604
}

Semantic roles & 50–950 ramp

primary
#796FC8
secondary
#D6DAB9
accent
#B82EA8
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #796FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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