#796CEA#796CEA

#796CEA is a mid, vivid blue. Relative luminance 0.207; OKLCH L 60.7% C 0.184 H 284.2°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#796CEA
RGBrgb(121, 108, 234)
HSLhsl(246, 75%, 67%)
HSVhsv(246, 54%, 92%)
CMYKcmyk(48.3%, 53.8%, 0%, 8.2%)
CIE-LABlab(52.65, 37.15, -62.37)
CIE-LCHlch(52.65, 72.59, 300.78°)
OKLaboklab(60.69% 0.0449 -0.178)
OKLCHoklch(60.69% 0.184 284.2)
XYZxyz(28.0946, 20.7292, 80.3467)
Luminance0.2073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CEA #DDEA6C
analogous
#6C9EEA #796CEA #B86CEA
triadic
#796CEA #EA796C #6CEA79
tetradic
#796CEA #EA6C9E #DDEA6C #6CEAB8
square
#796CEA #EA6C9E #DDEA6C #6CEAB8
split-complementary
#796CEA #EAB86C #9EEA6C
monochromatic
#2C1BC0 #4836E2 #796CEA #AAA2F2 #DBD7F9

Accessibility & contrast

On white

4.08
#796CEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#796CEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CEA
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CEA#FFFFFF#000000##000000
##796CEA1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2582EE
Deuteranopia (green-blind)
#1C7AE7
Tritanopia (blue-blind)
#5188A1
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #796cea;
/* rgb */ color: rgb(121, 108, 234);
/* oklch */ color: oklch(60.7% 0.184 284.2);
Tailwind
colors: {
  custom: {
    50: '#a796f1',
    500: '#796cea',
    950: '#000000',
  },
}
SCSS
$custom: #796cea;
$custom-light: #a796f1;
$custom-dark: #000000;
JSON
{
  "hex": "#796cea",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 234
  },
  "hsl": {
    "h": 246.19,
    "s": 75,
    "l": 67.059
  },
  "oklch": {
    "l": 0.60692,
    "c": 0.18355,
    "h": 284.2
  },
  "luminance": 0.20731
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #796CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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