#6156E7#6156E7

#6156E7 is a mid, highly saturated blue. Relative luminance 0.150; OKLCH L 55.0% C 0.211 H 280.3°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#6156E7
RGBrgb(97, 86, 231)
HSLhsl(245, 75%, 62%)
HSVhsv(245, 63%, 91%)
CMYKcmyk(58%, 62.8%, 0%, 9.4%)
CIE-LABlab(45.59, 44.65, -72.22)
CIE-LCHlch(45.59, 84.91, 301.73°)
OKLaboklab(54.95% 0.0377 -0.2077)
OKLCHoklch(54.95% 0.211 280.3)
XYZxyz(22.6768, 14.9649, 77.2794)
Luminance0.1497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6156E7 #DCE756
analogous
#5693E7 #6156E7 #AA56E7
triadic
#6156E7 #E76156 #56E761
tetradic
#6156E7 #E75693 #DCE756 #56E7AA
square
#6156E7 #E75693 #DCE756 #56E7AA
split-complementary
#6156E7 #E7AA56 #93E756
monochromatic
#2318AA #2F20DF #6156E7 #938CEF #C5C1F6

Accessibility & contrast

On white

5.26
#6156E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#6156E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6156E7
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6156E7#FFFFFF#000000##FFFFFF
##6156E71.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EC
Deuteranopia (green-blind)
#0066E4
Tritanopia (blue-blind)
#007A97
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #6156e7;
/* rgb */ color: rgb(97, 86, 231);
/* oklch */ color: oklch(55.0% 0.211 280.3);
Tailwind
colors: {
  custom: {
    50: '#9a86f0',
    500: '#6156e7',
    950: '#000000',
  },
}
SCSS
$custom: #6156e7;
$custom-light: #9a86f0;
$custom-dark: #000000;
JSON
{
  "hex": "#6156e7",
  "rgb": {
    "r": 97,
    "g": 86,
    "b": 231
  },
  "hsl": {
    "h": 244.552,
    "s": 75.13,
    "l": 62.157
  },
  "oklch": {
    "l": 0.54952,
    "c": 0.21111,
    "h": 280.3
  },
  "luminance": 0.14966
}

Semantic roles & 50–950 ramp

primary
#6156E7
secondary
#E3E7B2
accent
#D70EC8
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6156E7

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

Preview Lab → · Contrast checker → · Palette generator →

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