#796ED8#796ED8

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

Color values

HEX#796ED8
RGBrgb(121, 110, 216)
HSLhsl(246, 58%, 64%)
HSVhsv(246, 49%, 85%)
CMYKcmyk(44%, 49.1%, 0%, 15.3%)
CIE-LABlab(52.03, 30.71, -53.22)
CIE-LCHlch(52.03, 61.45, 299.99°)
OKLaboklab(59.88% 0.0415 -0.1511)
OKLCHoklch(59.88% 0.157 285.4)
XYZxyz(25.8522, 20.1736, 67.4842)
Luminance0.2018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796ED8 #CDD86E
analogous
#6E98D8 #796ED8 #AE6ED8
triadic
#796ED8 #D8796E #6ED879
tetradic
#796ED8 #D86E98 #CDD86E #6ED8AE
square
#796ED8 #D86E98 #CDD86E #6ED8AE
split-complementary
#796ED8 #D8AE6E #98D86E
monochromatic
#372BA0 #4C3ECB #796ED8 #A69EE5 #D2CEF2

Accessibility & contrast

On white

4.17
#796ED8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#796ED8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796ED8
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796ED8#FFFFFF#000000##000000
##796ED81.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#417FDC
Deuteranopia (green-blind)
#3E79D6
Tritanopia (blue-blind)
#5B8499
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #796ed8;
/* rgb */ color: rgb(121, 110, 216);
/* oklch */ color: oklch(59.9% 0.157 285.4);
Tailwind
colors: {
  custom: {
    50: '#a597e5',
    500: '#796ed8',
    950: '#000000',
  },
}
SCSS
$custom: #796ed8;
$custom-light: #a597e5;
$custom-dark: #000000;
JSON
{
  "hex": "#796ed8",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 216
  },
  "hsl": {
    "h": 246.226,
    "s": 57.609,
    "l": 63.922
  },
  "oklch": {
    "l": 0.59878,
    "c": 0.15669,
    "h": 285.4
  },
  "luminance": 0.20175
}

Semantic roles & 50–950 ramp

primary
#796ED8
secondary
#E0E3BE
accent
#C520B4
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796ED8

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

Preview Lab → · Contrast checker → · Palette generator →

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