#796DDB#796DDB

#796DDB is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.9% C 0.162 H 285.4°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#796DDB
RGBrgb(121, 109, 219)
HSLhsl(247, 60%, 64%)
HSVhsv(247, 50%, 86%)
CMYKcmyk(44.7%, 50.2%, 0%, 14.1%)
CIE-LABlab(51.97, 32.18, -55.02)
CIE-LCHlch(51.97, 63.74, 300.32°)
OKLaboklab(59.89% 0.043 -0.1564)
OKLCHoklch(59.89% 0.162 285.4)
XYZxyz(26.1363, 20.1156, 69.5097)
Luminance0.2012 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DDB #CFDB6D
analogous
#6D98DB #796DDB #B06DDB
triadic
#796DDB #DB796D #6DDB79
tetradic
#796DDB #DB6D98 #CFDB6D #6DDBB0
square
#796DDB #DB6D98 #CFDB6D #6DDBB0
split-complementary
#796DDB #DBB06D #98DB6D
monochromatic
#3629A5 #4C3CCF #796DDB #A69EE7 #D3CFF3

Accessibility & contrast

On white

4.18
#796DDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#796DDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796DDB
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DDB#FFFFFF#000000##000000
##796DDB1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C7FDF
Deuteranopia (green-blind)
#3979D9
Tritanopia (blue-blind)
#5A849A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #796ddb;
/* rgb */ color: rgb(121, 109, 219);
/* oklch */ color: oklch(59.9% 0.162 285.4);
Tailwind
colors: {
  custom: {
    50: '#a597e7',
    500: '#796ddb',
    950: '#000000',
  },
}
SCSS
$custom: #796ddb;
$custom-light: #a597e7;
$custom-dark: #000000;
JSON
{
  "hex": "#796ddb",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 219
  },
  "hsl": {
    "h": 246.545,
    "s": 60.44,
    "l": 64.314
  },
  "oklch": {
    "l": 0.59886,
    "c": 0.16217,
    "h": 285.4
  },
  "luminance": 0.20117
}

Semantic roles & 50–950 ramp

primary
#796DDB
secondary
#E1E5BF
accent
#C81DB5
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796DDB

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

Preview Lab → · Contrast checker → · Palette generator →

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