#6158CA#6158CA

#6158CA is a mid, vivid blue. Relative luminance 0.138; OKLCH L 53.1% C 0.171 H 282.4°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#6158CA
RGBrgb(97, 88, 202)
HSLhsl(245, 52%, 57%)
HSVhsv(245, 56%, 79%)
CMYKcmyk(52%, 56.4%, 0%, 20.8%)
CIE-LABlab(43.92, 34.46, -58.37)
CIE-LCHlch(43.92, 67.78, 300.56°)
OKLaboklab(53.06% 0.0368 -0.167)
OKLCHoklch(53.06% 0.171 282.4)
XYZxyz(19.0769, 13.7840, 57.5210)
Luminance0.1379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6158CA #C1CA58
analogous
#5888CA #6158CA #9A58CA
triadic
#6158CA #CA6158 #58CA61
tetradic
#6158CA #CA5888 #C1CA58 #58CA9A
square
#6158CA #CA5888 #C1CA58 #58CA9A
split-complementary
#6158CA #CA9A58 #88CA58
monochromatic
#2F287F #4037AE #6158CA #8D86D9 #B9B5E7

Accessibility & contrast

On white

5.59
#6158CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#6158CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6158CA
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6158CA#FFFFFF#000000##FFFFFF
##6158CA1.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CCE
Deuteranopia (green-blind)
#0064C8
Tritanopia (blue-blind)
#367288
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #6158ca;
/* rgb */ color: rgb(97, 88, 202);
/* oklch */ color: oklch(53.1% 0.171 282.4);
Tailwind
colors: {
  custom: {
    50: '#9687db',
    500: '#6158ca',
    950: '#000000',
  },
}
SCSS
$custom: #6158ca;
$custom-light: #9687db;
$custom-dark: #000000;
JSON
{
  "hex": "#6158ca",
  "rgb": {
    "r": 97,
    "g": 88,
    "b": 202
  },
  "hsl": {
    "h": 244.737,
    "s": 51.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.53061,
    "c": 0.17099,
    "h": 282.4
  },
  "luminance": 0.13785
}

Semantic roles & 50–950 ramp

primary
#6158CA
secondary
#D2D6A8
accent
#DB4DD0
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #6158CA

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

Preview Lab → · Contrast checker → · Palette generator →

#6158CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva