#796AF2#796AF2

#796AF2 is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.9% C 0.197 H 283.9°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#796AF2
RGBrgb(121, 106, 242)
HSLhsl(247, 84%, 68%)
HSVhsv(247, 56%, 95%)
CMYKcmyk(50%, 56.2%, 0%, 5.1%)
CIE-LABlab(52.71, 40.68, -66.74)
CIE-LCHlch(52.71, 78.16, 301.36°)
OKLaboklab(60.9% 0.0473 -0.1908)
OKLCHoklch(60.9% 0.197 283.9)
XYZxyz(29.0614, 20.7823, 86.4673)
Luminance0.2078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796AF2 #E3F26A
analogous
#6A9FF2 #796AF2 #BD6AF2
triadic
#796AF2 #F2796A #6AF279
tetradic
#796AF2 #F26A9F #E3F26A #6AF2BD
square
#796AF2 #F26A9F #E3F26A #6AF2BD
split-complementary
#796AF2 #F2BD6A #9FF26A
monochromatic
#2712CF #4632ED #796AF2 #ACA2F7 #DEDBFC

Accessibility & contrast

On white

4.07
#796AF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#796AF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796AF2
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796AF2#FFFFFF#000000##000000
##796AF21.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082F7
Deuteranopia (green-blind)
#0079EF
Tritanopia (blue-blind)
#4B89A4
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #796af2;
/* rgb */ color: rgb(121, 106, 242);
/* oklch */ color: oklch(60.9% 0.197 283.9);
Tailwind
colors: {
  custom: {
    50: '#a895f7',
    500: '#796af2',
    950: '#000000',
  },
}
SCSS
$custom: #796af2;
$custom-light: #a895f7;
$custom-dark: #000000;
JSON
{
  "hex": "#796af2",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 242
  },
  "hsl": {
    "h": 246.618,
    "s": 83.951,
    "l": 68.235
  },
  "oklch": {
    "l": 0.60901,
    "c": 0.19661,
    "h": 283.9
  },
  "luminance": 0.20784
}

Semantic roles & 50–950 ramp

primary
#796AF2
secondary
#ECF1C7
accent
#E005C8
background
#FAF9FF
surface
#F4F1FF
border
#CECBD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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