#796BEA#796BEA

#796BEA is a mid, vivid blue. Relative luminance 0.205; OKLCH L 60.5% C 0.185 H 284.4°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#796BEA
RGBrgb(121, 107, 234)
HSLhsl(247, 75%, 67%)
HSVhsv(247, 54%, 92%)
CMYKcmyk(48.3%, 54.3%, 0%, 8.2%)
CIE-LABlab(52.42, 37.74, -62.74)
CIE-LCHlch(52.42, 73.22, 301.03°)
OKLaboklab(60.52% 0.0461 -0.1791)
OKLCHoklch(60.52% 0.185 284.4)
XYZxyz(27.9897, 20.5195, 80.3118)
Luminance0.2052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BEA #DCEA6B
analogous
#6B9DEA #796BEA #B96BEA
triadic
#796BEA #EA796B #6BEA79
tetradic
#796BEA #EA6B9D #DCEA6B #6BEAB9
square
#796BEA #EA6B9D #DCEA6B #6BEAB9
split-complementary
#796BEA #EAB96B #9DEA6B
monochromatic
#2D1BBF #4835E2 #796BEA #AAA1F2 #DAD6F9

Accessibility & contrast

On white

4.11
#796BEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#796BEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BEA
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BEA#FFFFFF#000000##000000
##796BEA1.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2181EE
Deuteranopia (green-blind)
#1879E7
Tritanopia (blue-blind)
#5187A0
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #796bea;
/* rgb */ color: rgb(121, 107, 234);
/* oklch */ color: oklch(60.5% 0.185 284.4);
Tailwind
colors: {
  custom: {
    50: '#a795f1',
    500: '#796bea',
    950: '#000000',
  },
}
SCSS
$custom: #796bea;
$custom-light: #a795f1;
$custom-dark: #000000;
JSON
{
  "hex": "#796bea",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 234
  },
  "hsl": {
    "h": 246.614,
    "s": 75.148,
    "l": 66.863
  },
  "oklch": {
    "l": 0.6052,
    "c": 0.1849,
    "h": 284.4
  },
  "luminance": 0.20521
}

Semantic roles & 50–950 ramp

primary
#796BEA
secondary
#E8EDC4
accent
#D70EC1
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #796BEA

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

Preview Lab → · Contrast checker → · Palette generator →

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