#796DE9#796DE9

#796DE9 is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.8% C 0.181 H 284.0°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#796DE9
RGBrgb(121, 109, 233)
HSLhsl(246, 74%, 67%)
HSVhsv(246, 53%, 91%)
CMYKcmyk(48.1%, 53.2%, 0%, 8.6%)
CIE-LABlab(52.82, 36.27, -61.53)
CIE-LCHlch(52.82, 71.43, 300.52°)
OKLaboklab(60.8% 0.0438 -0.1755)
OKLCHoklch(60.8% 0.181 284)
XYZxyz(28.0574, 20.8840, 79.6276)
Luminance0.2089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DE9 #DDE96D
analogous
#6D9FE9 #796DE9 #B76DE9
triadic
#796DE9 #E9796D #6DE979
tetradic
#796DE9 #E96D9F #DDE96D #6DE9B7
square
#796DE9 #E96D9F #DDE96D #6DE9B7
split-complementary
#796DE9 #E9B76D #9FE96D
monochromatic
#2C1DBF #4838E1 #796DE9 #AAA2F1 #DBD7F9

Accessibility & contrast

On white

4.06
#796DE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#796DE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796DE9
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DE9#FFFFFF#000000##000000
##796DE91.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A82ED
Deuteranopia (green-blind)
#227AE6
Tritanopia (blue-blind)
#5188A1
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #796de9;
/* rgb */ color: rgb(121, 109, 233);
/* oklch */ color: oklch(60.8% 0.181 284.0);
Tailwind
colors: {
  custom: {
    50: '#a797f1',
    500: '#796de9',
    950: '#000000',
  },
}
SCSS
$custom: #796de9;
$custom-light: #a797f1;
$custom-dark: #000000;
JSON
{
  "hex": "#796de9",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 233
  },
  "hsl": {
    "h": 245.806,
    "s": 73.81,
    "l": 67.059
  },
  "oklch": {
    "l": 0.60799,
    "c": 0.18089,
    "h": 284
  },
  "luminance": 0.20885
}

Semantic roles & 50–950 ramp

primary
#796DE9
secondary
#E9EDC5
accent
#D610C3
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796DE9

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

Preview Lab → · Contrast checker → · Palette generator →

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