#796CF2#796CF2

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

Color values

HEX#796CF2
RGBrgb(121, 108, 242)
HSLhsl(246, 84%, 69%)
HSVhsv(246, 55%, 95%)
CMYKcmyk(50%, 55.4%, 0%, 5.1%)
CIE-LABlab(53.17, 39.51, -66.00)
CIE-LCHlch(53.17, 76.93, 300.91°)
OKLaboklab(61.24% 0.0451 -0.1887)
OKLCHoklch(61.24% 0.194 283.5)
XYZxyz(29.2699, 21.1993, 86.5368)
Luminance0.2120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CF2 #E5F26C
analogous
#6CA2F2 #796CF2 #BC6CF2
triadic
#796CF2 #F2796C #6CF279
tetradic
#796CF2 #F26CA2 #E5F26C #6CF2BC
square
#796CF2 #F26CA2 #E5F26C #6CF2BC
split-complementary
#796CF2 #F2BC6C #A2F26C
monochromatic
#2512D1 #4634ED #796CF2 #ACA4F7 #E0DCFC

Accessibility & contrast

On white

4.01
#796CF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#796CF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CF2
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CF2#FFFFFF#000000##000000
##796CF21.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1083F7
Deuteranopia (green-blind)
#007BEF
Tritanopia (blue-blind)
#4B8AA5
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #796cf2;
/* rgb */ color: rgb(121, 108, 242);
/* oklch */ color: oklch(61.2% 0.194 283.5);
Tailwind
colors: {
  custom: {
    50: '#a896f7',
    500: '#796cf2',
    950: '#000000',
  },
}
SCSS
$custom: #796cf2;
$custom-light: #a896f7;
$custom-dark: #000000;
JSON
{
  "hex": "#796cf2",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 242
  },
  "hsl": {
    "h": 245.821,
    "s": 83.75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.61239,
    "c": 0.19399,
    "h": 283.5
  },
  "luminance": 0.21201
}

Semantic roles & 50–950 ramp

primary
#796CF2
secondary
#EDF1C9
accent
#E005CB
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796CF2

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

Preview Lab → · Contrast checker → · Palette generator →

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