#796BDF#796BDF

#796BDF is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.8% C 0.170 H 285.5°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#796BDF
RGBrgb(121, 107, 223)
HSLhsl(247, 64%, 65%)
HSVhsv(247, 52%, 87%)
CMYKcmyk(45.7%, 52%, 0%, 12.5%)
CIE-LABlab(51.73, 34.52, -57.66)
CIE-LCHlch(51.73, 67.21, 300.91°)
OKLaboklab(59.79% 0.0456 -0.1641)
OKLCHoklch(59.79% 0.17 285.5)
XYZxyz(26.4583, 19.9069, 72.2460)
Luminance0.1991 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BDF #D1DF6B
analogous
#6B97DF #796BDF #B36BDF
triadic
#796BDF #DF796B #6BDF79
tetradic
#796BDF #DF6B97 #D1DF6B #6BDFB3
square
#796BDF #DF6B97 #D1DF6B #6BDFB3
split-complementary
#796BDF #DFB36B #97DF6B
monochromatic
#3525AB #4B39D4 #796BDF #A79DEA #D4D0F5

Accessibility & contrast

On white

4.22
#796BDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#796BDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BDF
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BDF#FFFFFF#000000##000000
##796BDF1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#337FE3
Deuteranopia (green-blind)
#2F78DC
Tritanopia (blue-blind)
#58849B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #796bdf;
/* rgb */ color: rgb(121, 107, 223);
/* oklch */ color: oklch(59.8% 0.170 285.5);
Tailwind
colors: {
  custom: {
    50: '#a695ea',
    500: '#796bdf',
    950: '#000000',
  },
}
SCSS
$custom: #796bdf;
$custom-light: #a695ea;
$custom-dark: #000000;
JSON
{
  "hex": "#796bdf",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 223
  },
  "hsl": {
    "h": 247.241,
    "s": 64.444,
    "l": 64.706
  },
  "oklch": {
    "l": 0.59787,
    "c": 0.17035,
    "h": 285.5
  },
  "luminance": 0.19908
}

Semantic roles & 50–950 ramp

primary
#796BDF
secondary
#E2E7BF
accent
#CC19B7
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796BDF

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

Preview Lab → · Contrast checker → · Palette generator →

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