#796DEF#796DEF

#796DEF is a mid, vivid blue. Relative luminance 0.212; OKLCH L 61.2% C 0.189 H 283.5°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#796DEF
RGBrgb(121, 109, 239)
HSLhsl(246, 80%, 68%)
HSVhsv(246, 54%, 94%)
CMYKcmyk(49.4%, 54.4%, 0%, 6.3%)
CIE-LABlab(53.20, 38.04, -64.27)
CIE-LCHlch(53.20, 74.69, 300.62°)
OKLaboklab(61.2% 0.044 -0.1836)
OKLCHoklch(61.2% 0.189 283.5)
XYZxyz(28.9291, 21.2327, 84.2186)
Luminance0.2123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DEF #E3EF6D
analogous
#6DA2EF #796DEF #BA6DEF
triadic
#796DEF #EF796D #6DEF79
tetradic
#796DEF #EF6DA2 #E3EF6D #6DEFBA
square
#796DEF #EF6DA2 #E3EF6D #6DEFBA
split-complementary
#796DEF #EFBA6D #A2EF6D
monochromatic
#2716CB #4636E9 #796DEF #ACA4F5 #DEDBFB

Accessibility & contrast

On white

4.00
#796DEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#796DEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796DEF
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DEF#FFFFFF#000000##000000
##796DEF1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E83F3
Deuteranopia (green-blind)
#107BEC
Tritanopia (blue-blind)
#4D8AA4
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #796def;
/* rgb */ color: rgb(121, 109, 239);
/* oklch */ color: oklch(61.2% 0.189 283.5);
Tailwind
colors: {
  custom: {
    50: '#a797f5',
    500: '#796def',
    950: '#000000',
  },
}
SCSS
$custom: #796def;
$custom-light: #a797f5;
$custom-dark: #000000;
JSON
{
  "hex": "#796def",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 239
  },
  "hsl": {
    "h": 245.538,
    "s": 80.247,
    "l": 68.235
  },
  "oklch": {
    "l": 0.61204,
    "c": 0.18877,
    "h": 283.5
  },
  "luminance": 0.21234
}

Semantic roles & 50–950 ramp

primary
#796DEF
secondary
#ECF0C8
accent
#DD09C9
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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