#6156EC#6156EC

#6156EC is a mid, highly saturated blue. Relative luminance 0.153; OKLCH L 55.4% C 0.217 H 279.9°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#6156EC
RGBrgb(97, 86, 236)
HSLhsl(244, 80%, 63%)
HSVhsv(244, 64%, 93%)
CMYKcmyk(58.9%, 63.6%, 0%, 7.5%)
CIE-LABlab(45.98, 46.20, -74.40)
CIE-LCHlch(45.98, 87.58, 301.84°)
OKLaboklab(55.36% 0.0372 -0.2141)
OKLCHoklch(55.36% 0.217 279.9)
XYZxyz(23.3931, 15.2514, 81.0517)
Luminance0.1525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6156EC #E1EC56
analogous
#5696EC #6156EC #AC56EC
triadic
#6156EC #EC6156 #56EC61
tetradic
#6156EC #EC5696 #E1EC56 #56ECAC
square
#6156EC #EC5696 #E1EC56 #56ECAC
split-complementary
#6156EC #ECAC56 #96EC56
monochromatic
#2014B3 #2E1FE6 #6156EC #948DF2 #C8C4F8

Accessibility & contrast

On white

5.18
#6156EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#6156EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6156EC
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6156EC#FFFFFF#000000##FFFFFF
##6156EC1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F1
Deuteranopia (green-blind)
#0067E9
Tritanopia (blue-blind)
#007C99
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #6156ec;
/* rgb */ color: rgb(97, 86, 236);
/* oklch */ color: oklch(55.4% 0.217 279.9);
Tailwind
colors: {
  custom: {
    50: '#9b86f3',
    500: '#6156ec',
    950: '#000000',
  },
}
SCSS
$custom: #6156ec;
$custom-light: #9b86f3;
$custom-dark: #000000;
JSON
{
  "hex": "#6156ec",
  "rgb": {
    "r": 97,
    "g": 86,
    "b": 236
  },
  "hsl": {
    "h": 244.4,
    "s": 79.787,
    "l": 63.137
  },
  "oklch": {
    "l": 0.55358,
    "c": 0.21734,
    "h": 279.9
  },
  "luminance": 0.15253
}

Semantic roles & 50–950 ramp

primary
#6156EC
secondary
#E6EAB4
accent
#DC09CD
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6156EC

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

Preview Lab → · Contrast checker → · Palette generator →

#6156EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva