#796DD4#796DD4

#796DD4 is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.4% C 0.153 H 286.1°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#796DD4
RGBrgb(121, 109, 212)
HSLhsl(247, 54%, 63%)
HSVhsv(247, 49%, 83%)
CMYKcmyk(42.9%, 48.6%, 0%, 16.9%)
CIE-LABlab(51.56, 30.15, -51.71)
CIE-LCHlch(51.56, 59.86, 300.25°)
OKLaboklab(59.45% 0.0423 -0.1467)
OKLCHoklch(59.45% 0.153 286.1)
XYZxyz(25.2341, 19.7547, 64.7581)
Luminance0.1976 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DD4 #C8D46D
analogous
#6D95D4 #796DD4 #AC6DD4
triadic
#796DD4 #D4796D #6DD479
tetradic
#796DD4 #D46D95 #C8D46D #6DD4AC
square
#796DD4 #D46D95 #C8D46D #6DD4AC
split-complementary
#796DD4 #D4AC6D #95D46D
monochromatic
#3A2D99 #4E3EC6 #796DD4 #A49CE2 #D0CCF0

Accessibility & contrast

On white

4.24
#796DD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#796DD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796DD4
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DD4#FFFFFF#000000##000000
##796DD41.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#427ED8
Deuteranopia (green-blind)
#4078D2
Tritanopia (blue-blind)
#5D8296
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #796dd4;
/* rgb */ color: rgb(121, 109, 212);
/* oklch */ color: oklch(59.4% 0.153 286.1);
Tailwind
colors: {
  custom: {
    50: '#a497e2',
    500: '#796dd4',
    950: '#000000',
  },
}
SCSS
$custom: #796dd4;
$custom-light: #a497e2;
$custom-dark: #000000;
JSON
{
  "hex": "#796dd4",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 212
  },
  "hsl": {
    "h": 246.99,
    "s": 54.497,
    "l": 62.941
  },
  "oklch": {
    "l": 0.59447,
    "c": 0.15265,
    "h": 286.1
  },
  "luminance": 0.19756
}

Semantic roles & 50–950 ramp

primary
#796DD4
secondary
#DDE1BC
accent
#C224B0
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #796DD4

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

Preview Lab → · Contrast checker → · Palette generator →

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