#796FDF#796FDF

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

Color values

HEX#796FDF
RGBrgb(121, 111, 223)
HSLhsl(245, 64%, 65%)
HSVhsv(245, 50%, 87%)
CMYKcmyk(45.7%, 50.2%, 0%, 12.5%)
CIE-LABlab(52.69, 32.16, -56.13)
CIE-LCHlch(52.69, 64.69, 299.81°)
OKLaboklab(60.5% 0.0409 -0.1596)
OKLCHoklch(60.5% 0.165 284.4)
XYZxyz(26.8850, 20.7603, 72.3883)
Luminance0.2076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FDF #D5DF6F
analogous
#6F9DDF #796FDF #B16FDF
triadic
#796FDF #DF796F #6FDF79
tetradic
#796FDF #DF6F9D #D5DF6F #6FDFB1
square
#796FDF #DF6F9D #D5DF6F #6FDFB1
split-complementary
#796FDF #DFB16F #9DDF6F
monochromatic
#3226AD #4A3DD4 #796FDF #A8A1EA #D6D3F5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796FDF#FFFFFF#000000##000000
##796FDF1.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)
#3C81E3
Deuteranopia (green-blind)
#377ADD
Tritanopia (blue-blind)
#57879D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #796fdf;
/* rgb */ color: rgb(121, 111, 223);
/* oklch */ color: oklch(60.5% 0.165 284.4);
Tailwind
colors: {
  custom: {
    50: '#a598ea',
    500: '#796fdf',
    950: '#000000',
  },
}
SCSS
$custom: #796fdf;
$custom-light: #a598ea;
$custom-dark: #000000;
JSON
{
  "hex": "#796fdf",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 223
  },
  "hsl": {
    "h": 245.357,
    "s": 63.636,
    "l": 65.49
  },
  "oklch": {
    "l": 0.60501,
    "c": 0.16478,
    "h": 284.4
  },
  "luminance": 0.20762
}

Semantic roles & 50–950 ramp

primary
#796FDF
secondary
#E4E8C2
accent
#CB1ABC
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796FDF

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

Preview Lab → · Contrast checker → · Palette generator →

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