#796DDD#796DDD

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

Color values

HEX#796DDD
RGBrgb(121, 109, 221)
HSLhsl(246, 62%, 65%)
HSVhsv(246, 51%, 87%)
CMYKcmyk(45.2%, 50.7%, 0%, 13.3%)
CIE-LABlab(52.09, 32.76, -55.96)
CIE-LCHlch(52.09, 64.85, 300.34°)
OKLaboklab(60.01% 0.0431 -0.1591)
OKLCHoklch(60.01% 0.165 285.2)
XYZxyz(26.4011, 20.2215, 70.9047)
Luminance0.2022 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DDD #D1DD6D
analogous
#6D99DD #796DDD #B16DDD
triadic
#796DDD #DD796D #6DDD79
tetradic
#796DDD #DD6D99 #D1DD6D #6DDDB1
square
#796DDD #DD6D99 #D1DD6D #6DDDB1
split-complementary
#796DDD #DDB16D #99DD6D
monochromatic
#3527A8 #4B3BD1 #796DDD #A79FE9 #D4D0F4

Accessibility & contrast

On white

4.16
#796DDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##796DDD#FFFFFF#000000##000000
##796DDD1.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A7FE1
Deuteranopia (green-blind)
#3679DB
Tritanopia (blue-blind)
#59859B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #796ddd;
/* rgb */ color: rgb(121, 109, 221);
/* oklch */ color: oklch(60.0% 0.165 285.2);
Tailwind
colors: {
  custom: {
    50: '#a597e8',
    500: '#796ddd',
    950: '#000000',
  },
}
SCSS
$custom: #796ddd;
$custom-light: #a597e8;
$custom-dark: #000000;
JSON
{
  "hex": "#796ddd",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 221
  },
  "hsl": {
    "h": 246.429,
    "s": 62.222,
    "l": 64.706
  },
  "oklch": {
    "l": 0.60014,
    "c": 0.16488,
    "h": 285.2
  },
  "luminance": 0.20223
}

Semantic roles & 50–950 ramp

primary
#796DDD
secondary
#E2E6C0
accent
#CA1CB7
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796DDD

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

Preview Lab → · Contrast checker → · Palette generator →

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